Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2011, 09:28 AM
Kikimorcho Kikimorcho is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Question TImageList quetsion

Hello, I want to ask if there is a way to determine whether an image in the imagelist is a bitmap or png for example. Or to be more precise, whether the image has an alpha channel or not.
When set ColorDepth to cd32Bit, bitmaps loaded have alpha 0, and pngs - well, whatever alpha they have. I get a image from the imagelist and draw it according the alpha, works great for pngs, but bitmaps become fully transparent.
I can check the alpha of all pixels, and if 0 - treat image as bitmap, but was wondering if there is a better way?
Reply With Quote
Reply

Tags
alpha, bitmap, png, timagelist

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:42 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.