ImageFormatConverter to convert a 32Bit BMP image to a 256 BMP Ima

G

Guest

Hi,

VS2005 - C# - .NET2

I am trying to convert a 32Bit BMP image to a 256 BMP Image, after various
searches, i found the class: ImageFormatConverter.

In the MSDN is stated: “ImageFormatConverter is a class that can be used to
convert colors from one data type to another.â€

Does someone have an example of how to use it?

Or can someone example how to create a 256 Color BMP file from a 32Bit BMP
image using .NET2 and C#?


Many Thanks,
Filippo
 
A

Alex

I am trying to convert a 32Bit BMP image to a 256 BMP Image, after various
searches, i found the class: ImageFormatConverter.

In the MSDN is stated: "ImageFormatConverter is a class that can be used to
convert colors from one data type to another."

Does someone have an example of how to use it?

Or can someone example how to create a 256 Color BMP file from a 32Bit BMP
image using .NET2 and C#?


Many Thanks,
Filippo

In fact, 32bmp image and 256 bmp image has same types. So I think
ImageFormatConverter doesn't used for this. If you want convert image
to grayscale and save it, you can use direct access to values through
BitmapData.

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top