LoadBitmapFromResource - how to work with PNG |
Post Reply |
Author | |
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
Posted: 19 December 2007 at 11:07pm |
I'm attempting to use PNG resources. And it's not working:(
In creating the resource file I'm using 1000 CUSTOM MyImage.png The resource is there but is not being loaded by LoadBitmapFromResource function. Maybe it shouldn't be CUSTOM type. Does anybody know? /edit I see that if I convert image to a 32bpp bitmap image and add resource as: 1000 BITMAP MyImage.bmp then everything works ok. Can ImageManager allow load png from resource. I think if could specify resource type in LoadBitmapFromResource then should be pretty straightforward. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
click properties and replace "CUSTOM" to "PNG"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
Thanks Oleg,
I had no idea PNG was a valid resource type (I just use notepad and rc.exe to build). |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |