Any code snippet using method ImageFormatConverter?

Ask general questions here.
devenb
Posts: 24
Joined: Mon Mar 09, 2009 11:50 am
Location: Bracknell, UK

Any code snippet using method ImageFormatConverter?

Post by devenb » Tue Jan 26, 2010 1:39 pm

Hi,

I tried to search for this in the forum as well as googled it, but could not get much info on it.
Can anyone help me with converting an image to bitmap using ImageFormatConverter method?

Thanks & Regards,
Deven B.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Any code snippet using method ImageFormatConverter?

Post by Support Team » Wed Jan 27, 2010 5:39 pm

I think you misunderstand the meaning of the ImageFormatConverter class. According to its documentation (see http://msdn.microsoft.com/en-us/library ... erter.aspx) this class is used to convert ImageFormat objects from one data type to another, e.g. from their string representation to actual ImageFormat objects.

If you want to save an image in different formats, just use the Image.Save method and specify the ImageFormat the image should be saved in (see http://msdn.microsoft.com/en-us/library/9t4syfhh.aspx)!

Regards,
Alex
Ranorex Support Team