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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top