Why is the color of the 32bit BMP pattate 0 ???? Urgent !!!!

Source: Internet
Author: User
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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.