473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

ImageConverter

Hi all,

how can i using the ImageConverter-class to convert a tiff Image to a jpeg?
Nov 16 '05 #1
1 6317
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.

"Falk Winkler" <FW******@smi-online.de> wrote in message
news:O9**************@TK2MSFTNGP14.phx.gbl...
Hi all,

how can i using the ImageConverter-class to convert a tiff Image to a
jpeg?

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mevar81 | last post by:
Hello to everybody.I have a problem.I used a TypeDescriptor to retrieve a TypeConverter to convert an Image to a string.The problem is that it converts the image to the string...
0
by: Mevar81 | last post by:
Hi to all.I have a big problem.I have a propertygrid im my application to configure some control.I want to change runtime the image of a control and store the name of the file that holds the image...
0
by: mevar81 | last post by:
Hello to everybody.I have a problem.I have a property grid that display several properties of a object.I have a properties that store the image but I want to display the file name.So I have...
2
by: Andy Bates | last post by:
Hi - I have a C# .NET assembly that exposes a COM interface (basically has an interface and class with Guid attributes). If I compile this under VS.NET (with the "Register for COM Interop"...
4
by: Phil | last post by:
k, here is my issue.. I have BLOB data in SQL that needs to be grabbed and made into a TIF file and placed on the client (could be in temp internet dir). The reason we need it in TIF format is...
1
by: Adam Dockter | last post by:
I am trying to create image property that will work in the designer. I want the image to be written to the resource file for the class. Here is what I have so far, but I am running into a wall...
0
by: =?Utf-8?B?U3lsdmFpbiBBcmVuZQ==?= | last post by:
Hi, I would like to serialize a class which includes an image property field. I have no problem saving with bitmap image. However, when using a metafile (*.emf format) the result is also...
4
by: MikeP123 | last post by:
Hi, I'm pretty much a .NET n00b, and I was wondering if there is a (hopefully fast) way to see if two images are the same. I have a little test project with two PictureBoxes loaded with the exact...
1
by: rascalking | last post by:
Hello, So I've read many forums that explained how to get an image out of SQL Server database and display it. I used an alternate .aspx page to retrieve the image and write it back as binary...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.