How to Use BCB to display 16-bit BMP images?

Source: Internet
Author: User

How to Use BCB to display 16-bit BMP images?

Sender: coyi
E-mail: chencoyi@188.net
Time: 8:18:26
From: BJ
Views: 18
Details:

How to Use BCB to display 16-bit BMP images?
Thank you !!!!!!!!

--------------------------------------------------------------------------------
Related information:

29494 how can I use BCB to display 16-bit BMP images? Coyi 12/22
29506 use the image component. tbitmap has an attribute pixelformat that can specify the number of digits (null). Radish 12/22
I tried 29545, but I still can't do it ??? Why ??? Coyi 12/22
29550 how many digits did your image have ?, Post your source code to see (null) radish 12/22
29568 for you: coyi 12/22
For you:
Sender: coyi
E-mail: chencoyi@188.net
Time: 17:08:24
From: BJ
Times: 16
Details:

My source code is:

I first created a timage control, which is image1, and the code section is as follows:

Image1-> picture-> Bitmap-> pixelformat = pf24bit;

I tried it. No.

When my BMP file is saved in Photoshop, I am prompted to be 24bit.

I tried another method:

Graphics: tbitmap * BMP = new graphics: tbitmap;
BMP-> loadfromfile ("abc.bmp ");
BMP-> pixelformat = pf24bit;
Image1-> canvas-> draw (0, 0, BMP );
Delete BMP;

The result is that the image is still 256 colors. Help me !!!

Thank you very much .....

29617 empty (empty) coyi 12/23
29622 try image-> picture-> bitmap = BMP directly (null)

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.