Problem Loading 24-bit Images |
Post Reply |
Author | |
KFournier
Groupie Joined: 17 August 2004 Location: United States Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 13 December 2006 at 1:35pm |
I am trying to load the Task Panel control with custom loaded images using the FreeImage library. So far, it works fine if the images are 32-bit, but 24-bit images just show up completely black.
The group icon is a 32-bit .bmp and the black squares are loaded from a 24-bit bmp. It doesn't matter what 24-bit bmp I load, it's black. I've stepped through the image manager code and it never errors out. Here is my logic for setting the custom loaded images:
Any ideas on where to start looking? Thanks.
|
|
Kevin R. Fournier
SRP Computer Solutions, Inc. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just think nBPP is 32... Think FreeImage automatically convert them to 32 bit. Check nBPP value.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
KFournier
Groupie Joined: 17 August 2004 Location: United States Status: Offline Points: 15 |
Post Options
Thanks(0)
|
No, I checked this. nBPP is 24 when I load 24-bit images. In fact, I followed the code to the point where the Image Manager, seeing that the bAlpha is FALSE, simply loads the bitmap into an image list and goes from there. So, maybe the image list doesn't like the bitmap bits, although
I haven't had any problems using FreeImage in my own libraries.
In the interested of moving forward, I've modifed the Task Panel source code to use my own image class. I was just hoping I could find a way to avoid it, since modifying source is a headache when it comes to upgrades.
If you can think of anything else for me to look at, please share it. Thanks.
|
|
Kevin R. Fournier
SRP Computer Solutions, Inc. |
|
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 |