Forum: Multimedia
Delphi
by mihey,
7. Jan 2005
Oops... the message here was not right, it was my mistake.
Forum: Multimedia
Delphi
by mihey,
7. Jan 2005
I thought of that and decided it won't do. I have no problems displaying pf32bit TBitmap as I want. If I use TBitmap32, I will have to convert every icon bitmap data into 32-bit bitmap data, that means much work with palette. But the main problem will raise when I try to save a 4-bit icon, for example, from 32-bit bitmap. If a TBitmap32 was modified, I will have to check if the number of colors...
Forum: Multimedia
Delphi
by mihey,
7. Jan 2005
Thank you, I really used an online translator.
I'm trying to write a class that would read and save icons because Delphi's TIcon doesn't work with 32-bit icons and in all doesn't suit me.
I create a HBITMAP using CreateDIBSection so I have a pointer to bitmap data and then I read the bits from the file into the bitmap. To create TBitmap, I assign HBITMAP to TBitmap.Handle. The code works...