[Mono-list] Which namespace to use?

Ravindra Kumar rkumar@novell.com
Tue, 28 Sep 2004 05:15:04 -0600

Hi Eric and Jon,
We have a good enough support for JPG and PNG files.
Our implementation supports BMP, JPEG, PNG, GIF and TIFF
formats. Except BMP format, you would need to install libjpeg,
libpng, libungif and libtiff to save/load images of these formats.

All you have to do is create an image from (.bmp, or .jpg, or
.png or .gif or .tif) to modify existing image or create a new
Bitmap object with dimensions, if you want to create a new
image. See the Bitmap and Image classes under
System.Drawing namespace. When you save a Bitmap, you can
specify the format to use e.g. ImageFormat.Jpeg for JPEG.
ImageFormat class lies under System.Drawing.Imaging namespace.

Also, you might find the following URL useful (url might have
been wrapped),



>>> Jonathan Pryor <jonpryor@vt.edu> 09/28/04 4:22 PM >>>
On Tue, 2004-09-28 at 01:01, Eric Damron wrote:
> Which namespace should I look at that would have methods to allow me
> draw and then create either a JPG or PNG file from the drawing?

System.Drawing and it's related namespaces (System.Drawing.Imaging,
System.Drawing.Printing, etc.) are what you're looking for.

That's the good news.  The bad news is that Mono's implementation of
these namespaces is incomplete (last I knew, anyway).  It is being
worked on, so hopefully this won't be an impediment to your using it.

 - Jon