#1 2013-10-25 09:47:40

Nadoo4en
Member
Registered: 2013-10-25
Posts: 2

Save IGPImage with the needed Color depth

Hello all,
I should to save an Image with the needed color depth.
To read the color depth from IGPImage, I use IGPImage.RawFormat. But GDI+ has no a possibility to set RawFormat with a function.
What must I do?

Which PropertyItem must I set and how I do it?

Thank you.

Offline

#2 2013-10-25 11:58:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,494
Website

Re: Save IGPImage with the needed Color depth

AFAIK it looks like the ColorDepth parameter is only supported on the TIFF image type, thus converting to GIF or TIFF and another conversion to BMP or PNG is the only way to convert from 24-bit BMP or PNG to 8-bit BMP or PNG.
See https://groups.google.com/forum/#!topic … HfVKfZ2psA

I suppose you don't want to use TIFF format...

Offline

#3 2013-10-25 13:05:19

Nadoo4en
Member
Registered: 2013-10-25
Posts: 2

Re: Save IGPImage with the needed Color depth

Thank you.

I want to use it for all supported formats.
But if it is not possible, I'm going to think of something else.

Thanks for link, but I've already read it.

Offline

Board footer

Powered by FluxBB