Jump to content
Sign in to follow this  
ancp

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

Recommended Posts

ancp

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.