Page 1 of 1

Any code snippet using method ImageFormatConverter?

Posted: Tue Jan 26, 2010 1:39 pm
by devenb
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.

Re: Any code snippet using method ImageFormatConverter?

Posted: Wed Jan 27, 2010 5:39 pm
by Support Team
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