Why is the color of the 32bit BMP pattate 0 ???? Urgent !!!! Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiMultimedia/html/delphi_20061021130343218.html
I wonder why in windows, how does delphi obtain a 32-bit BMP pattate with a total value of '0?
Tell me about the heroes ??????
Because we need to process 32 bitmap, "convert to 32-bit ICO"
Only the bitmap of 1/2/4/8 bits has a color palette. The bitmap of 16/24/32 bits are called "true color". That is, the pixel itself defines the color value and does not need a color palette.
Thank you .........
To process 32 bitmap, "convert to 32-bit ICO"
What should we do?
function creaticonfrombitmap (Source: tbitmap): ticon;
var
iconinfo: ticoninfo;
begin
result: = ticon. create;
If source. empty then
exit;
iconinfo. ficon: = true;
iconinfo. hbmmask: = source. handle;
iconinfo. hbmcolor: = source. handle;
result. handle: = createiconindirect (iconinfo);
end;