ImageConverter

  • Thread starter Thread starter Falk Winkler
  • Start date Start date
F

Falk Winkler

Hi all,

how can i using the ImageConverter-class to convert a tiff Image to a jpeg?
 
ImageConverter is a TypeConverter based object. These are used at design
time to convert from one representation format to another such as converting
a number to a string and back. The ImageConverter displays the title
System.Drawing.Bitmap in the property grid.

To convert a file format you need to load the image in and save it as a
different format such as:

Bitmap bmp=(Bitmap)Image.FromFile("c:\\myfile.jpg");
bmp.Save("C:\\mytiff.tif",ImageFormat.Tiff);

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

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

Back
Top