DekGenius.com
[ Team LiB ] Previous Section Next Section

ImageFormat

System.Drawing.Imaging (system.drawing.dll)sealed class

This class represents the native format of a System.Drawing.Image object. It encapsulates a Guid uniquely identifying the format. There are a set of static properties that return a format object for the well-known image format types (e.g., Bmp, Jpeg, and MemoryBmp).

You can get the internal format of an image by using the RawFormat property.

public sealed class ImageFormat {
// Public Constructors
   public ImageFormat(Guid guid);
// Public Static Properties
   public static ImageFormat Bmp{get; }
   public static ImageFormat Emf{get; }
   public static ImageFormat Exif{get; }
   public static ImageFormat Gif{get; }
   public static ImageFormat Icon{get; }
   public static ImageFormat Jpeg{get; }
   public static ImageFormat MemoryBmp{get; }
   public static ImageFormat Png{get; }
   public static ImageFormat Tiff{get; }
   public static ImageFormat Wmf{get; }
// Public Instance Properties
   public Guid Guid{get; }
// Public Instance Methods
   public override bool Equals(object o);  // overrides object
   public override int GetHashCode();  // overrides object
   public override string ToString();  // overrides object
}

Returned By

System.Drawing.Image.RawFormat

Passed To

System.Drawing.Image.Save()

    [ Team LiB ] Previous Section Next Section