Image Class

An abstract base class that provides functionality for the Bitmap and Metafile descended classes.
Inheritance Hierarchy

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public abstract class Image : IDisposable

The Image type exposes the following members.

Constructors
  NameDescription
Public methodImage
Initializes a new instance of the Image class.
Properties
  NameDescription
Public propertyFlags
Gets the integer representing a bitwise combination of ImageFlags for this Image.
Public propertyFrameDimensionsList
Gets an array of GUIDs that represent the dimensions of frames within this Image.
Public propertyHeight
Gets the height, in pixels, of this Image.
Public propertyHorizontalResolution
Gets the horizontal resolution, in pixels per inch, of this Image.
Public propertyPalette
Gets or sets the color palette used for this Image.
Public propertyPhysicalDimension
Gets the width and height of this image.
Public propertyPixelFormat
Gets the pixel format for this Image.
Public propertyPropertyIdList
Gets IDs of the property items stored in this Image.
Public propertyPropertyItems
Gets all the property items (pieces of metadata) stored in this Image.
Public propertyRawFormat
Gets the file format of this Image.
Public propertySize
Gets the width and height, in pixels, of this image.
Public propertyVerticalResolution
Gets the vertical resolution, in pixels per inch, of this Image.
Public propertyWidth
Gets the width, in pixels, of this Image.
Methods
  NameDescription
Public methodClone
Creates an exact copy of this Image.
Public methodDispose
Releases all resources used by this Image.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFromFile
Creates an Image from the specified file.
Public methodStatic memberFromHbitmap
Creates a Bitmap from a handle to a GDI bitmap.
Public methodStatic memberFromStream(Stream)
Creates an Image from the specified data stream.
Public methodStatic memberFromStream(Stream, Boolean)
Creates an Image from the specified data stream, optionally using embedded color management information in that stream.
Public methodGetBounds
Gets the bounds of the image in the specified unit.
Public methodGetFrameCount
Returns the number of frames of the specified dimension.
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetPixelFormatSize
Returns the color depth, in number of bits per pixel, of the specified pixel format.
Public methodGetThumbnailImage
Returns a thumbnail for this Image.
Public methodGetType (Inherited from Object.)
Public methodStatic memberIsAlphaPixelFormat
Returns a value that indicates whether the pixel format for this Image contains alpha information.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRotateFlip
This method rotates, flips, or rotates and flips the Image.
Public methodSave(String)
Saves this Image to the specified file or stream.
Public methodSave(Stream, ImageFormat)
Saves this image to the specified stream in the specified format.
Public methodSave(String, ImageFormat)
Saves this Image to the specified file in the specified format.
Public methodSave(Stream, ImageCodecInfo, EncoderParameters)
Saves this image to the specified stream, with the specified encoder and image encoder parameters.
Public methodSave(String, ImageCodecInfo, EncoderParameters)
Saves this Image to the specified file, with the specified encoder and image-encoder parameters.
Public methodSaveAdd(EncoderParameters)
Adds a frame to the file or stream specified in a previous call to the Save(String) method. Use this method to save selected frames from a multiple-frame image to another multiple-frame image.
Public methodSaveAdd(Image, EncoderParameters)
Adds a frame to the file or stream specified in a previous call to the Save(String) method.
Protected methodSaveInternal(Stream, ImageFormat, EncoderParameters)
Saves this image to the specified stream in the specified format.
Protected methodSaveInternal(String, ImageFormat, EncoderParameters)
Saves this Image to the specified file in the specified format.
Public methodSelectActiveFrame
Selects the frame specified by the dimension and index.
Protected methodSetResolutionInternal
Sets the resolution for this Image.
Public methodToString (Inherited from Object.)
See Also