Jump to content

[GDI+] How to get BitmapData a Color Palette?


ancp
 Share

Recommended Posts

Hello,

I need convert any bitmap (BMP, PNG, TIF etc.) with any BPP to a non-standard file (no image, but data included 8-bit color depth), which will contain a BITMAP DATA and COLOR PALETTE like BMP(DIP) 8-bit.

Is possible use GDIPlus.au3 for getting BITMAP DATA and COLOR PALETTE? I know BMP format file, but when I use GDI+ to converting from other format, I'd like to make their work easier.

My idea is:

1) convert any bitmap to BMP 8-bit

2) read Bitmap data from BMP-8 >> ...write pixel to pixel (byte to byte) to external file

3) read collor palete from BMP-8 >> ...Write color by color to external file

Many thanks

Edited by ancp
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...