![]() |
#1 |
Swordsman
Join Date: Jun 2011
Location: Germany
Age: 53
Posts: 429
![]() |
using Shockbolt's tiles
Testing graphics with shockbolt's tiles.
Using the 64x64.png tile file i try to copy them into a screen device using C++ with bloodshed IDE (not sure which compiler is used right now) on a Windows 10 machine. I am using the Win32 GDI API BitBlt function to copy a source bitmap into a screen destination. Works fine so far. Just the graphics in the .png file have white background pixel (FF FF FF). Is there an easy way to copy a 64x64 pixel extract into a destination screen bitmap but have the white pixels in the source getting ignored? I tried ... filling destination bitmap with WHITE pixels and then use BitBlt with the copy mode of SRCINVERT ... doing an exclusive or operation. And indeed this turns all white pixels into black (empty) pixels. But also the color codes are inverted and the graphics turn into "shadows". Anyone have an good idea? Please reply, thanks!
__________________
Blondes are more fun! |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shockbolt tiles for 4.2.1 | Nick | Vanilla | 13 | May 25, 2020 20:35 |
Shockbolt tiles | half | Development | 4 | June 19, 2012 08:54 |
Shockbolt Tiles | Malatar | v4 | 7 | April 21, 2012 17:19 |
Shockbolt's tiles now in 3.4-dev! | Magnate | Development | 27 | January 9, 2012 09:52 |
Shockbolt's tiles now in v4 | Magnate | v4 | 14 | December 31, 2011 18:59 |