Hi there,
I'm usign D2009.
This specific sample I posted will not be resized, but others of the same kind are.
I'm developing an application which shows Thumbnails of pictures (64x64) and other filetypes are displayed with special icons which are not resized. You can think of it kind of like a filebrowser.
I don't really want to use a mask with those pictures, but as I can't get the alphachannel to work, it is the best thing I can do so far.
My code looks something like this (just out of my mind right now, but it really isn't any more I'm doing):
SingleImage := TSingleImage.CreateFromStream(AStream);
try
ConvertImageToBitmap(SingleImage, ABitmap);
finally
FreeAndNil(SingleImage);
end;
AImageList.AddMasked(ABitmap, clNone);
For the actual displaying I use the ImageLists Draw method.
I even rebuild the whole thing around TMultiImage, because I hold the ImageList responsible. I then tried to display it with DisplayImage. I also tried to set the Transparent-Property to True on several occasions and converted the format (which of course made it worse, but you never know ...).
Thanks for your response.
