System.Drawing.Image Members

The members of System.Drawing.Image are listed below.

See Also: Inherited members from System.MarshalByRefObject

Public Properties

[read-only]
Flagsint.

Gets attribute flags for the pixel data of this System.Drawing.Image.

[read-only]
FrameDimensionsListGuid[].

Gets an array of GUIDs that represent the dimensions of frames within this System.Drawing.Image.

[read-only]
Heightint.

Gets the height, in pixels, of this System.Drawing.Image.

[read-only]
HorizontalResolutionfloat.

Gets the horizontal resolution, in pixels per inch, of this System.Drawing.Image.

PaletteSystem.Drawing.Imaging.ColorPalette.

Gets or sets the color palette used for this System.Drawing.Image.

[read-only]
PhysicalDimensionSizeF.

Gets the width and height of this image.

[read-only]
PixelFormatSystem.Drawing.Imaging.PixelFormat.

Gets the pixel format for this System.Drawing.Image.

[read-only]
PropertyIdListint[].

Gets IDs of the property items stored in this System.Drawing.Image.

[read-only]
PropertyItemsSystem.Drawing.Imaging.PropertyItem[].

Gets all the property items (pieces of metadata) stored in this System.Drawing.Image.

[read-only]
RawFormatSystem.Drawing.Imaging.ImageFormat.

Gets the file format of this System.Drawing.Image.

[read-only]
SizeSize.

Gets the width and height, in pixels, of this image.

Tagobject.

Gets or sets an object that provides additional data about the image.

[read-only]
VerticalResolutionfloat.

Gets the vertical resolution, in pixels per inch, of this System.Drawing.Image.

[read-only]
Widthint.

Gets the width, in pixels, of this System.Drawing.Image.

Public Methods

Clone() : object

Creates an exact copy of this System.Drawing.Image.

Dispose()

Releases all resources used by this System.Drawing.Image.

Finalize()
Documentation for this section has not yet been entered.
static
FromFile(string) : Image

Creates an System.Drawing.Image from the specified file.

static
FromFile(string, bool) : Image

Creates an System.Drawing.Image from the specified file using embedded color management information in that file.

static
FromHbitmap(IntPtr) : Bitmap

Creates a System.Drawing.Bitmap from a handle to a GDI bitmap.

static
FromHbitmap(IntPtr, IntPtr) : Bitmap

Creates a System.Drawing.Bitmap from a handle to a GDI bitmap and a handle to a GDI palette.

static
FromStream(System.IO.Stream) : Image

Creates an System.Drawing.Image from the specified data stream.

static
FromStream(System.IO.Stream, bool) : Image

Creates an System.Drawing.Image from the specified data stream, optionally using embedded color management information in that stream.

static
FromStream(System.IO.Stream, bool, bool) : Image

Creates an System.Drawing.Image from the specified data stream, optionally using embedded color management information and validating the image data.

GetBounds(ref GraphicsUnit) : RectangleF
Documentation for this section has not yet been entered.
GetEncoderParameterList(Guid) : System.Drawing.Imaging.EncoderParameters

Returns information about the parameters supported by the specified image encoder.

GetFrameCount(System.Drawing.Imaging.FrameDimension) : int

Returns the number of frames of the specified dimension.

static
GetPixelFormatSize(System.Drawing.Imaging.PixelFormat) : int

Returns the color depth, in number of bits per pixel, of the specified pixel format.

GetPropertyItem(int) : System.Drawing.Imaging.PropertyItem

Gets the specified property item from this System.Drawing.Image.

GetThumbnailImage(int, int, Image.GetThumbnailImageAbort, IntPtr) : Image
Documentation for this section has not yet been entered.
static
IsAlphaPixelFormat(System.Drawing.Imaging.PixelFormat) : bool

Returns a value that indicates whether the pixel format for this System.Drawing.Image contains alpha information.

static
IsCanonicalPixelFormat(System.Drawing.Imaging.PixelFormat) : bool

Returns a value that indicates whether the pixel format is 32 bits per pixel.

static
IsExtendedPixelFormat(System.Drawing.Imaging.PixelFormat) : bool

Returns a value that indicates whether the pixel format is 64 bits per pixel.

RemovePropertyItem(int)

Removes the specified property item from this System.Drawing.Image.

RotateFlip(RotateFlipType)

Rotates, flips, or rotates and flips the System.Drawing.Image.

Save(string)

Saves this System.Drawing.Image to the specified file or stream.

Save(System.IO.Stream, System.Drawing.Imaging.ImageFormat)

Saves this image to the specified stream in the specified format.

Save(string, System.Drawing.Imaging.ImageFormat)

Saves this System.Drawing.Image to the specified file in the specified format.

Save(System.IO.Stream, System.Drawing.Imaging.ImageCodecInfo, System.Drawing.Imaging.EncoderParameters)

Saves this image to the specified stream, with the specified encoder and image encoder parameters.

Save(string, System.Drawing.Imaging.ImageCodecInfo, System.Drawing.Imaging.EncoderParameters)

Saves this System.Drawing.Image to the specified file, with the specified encoder and image-encoder parameters.

SaveAdd(System.Drawing.Imaging.EncoderParameters)

Adds a frame to the file or stream specified in a previous call to the erload:System.Drawing.Image.Save method. Use this method to save selected frames from a multiple-frame image to another multiple-frame image.

SaveAdd(Image, System.Drawing.Imaging.EncoderParameters)

Adds a frame to the file or stream specified in a previous call to the erload:System.Drawing.Image.Save method.

SelectActiveFrame(System.Drawing.Imaging.FrameDimension, int) : int

Selects the frame specified by the dimension and index.

SetPropertyItem(System.Drawing.Imaging.PropertyItem)

Stores a property item (piece of metadata) in this System.Drawing.Image.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Drawing.Image and optionally releases the managed resources.

Explicitly Implemented Interface Members