Metafile Class

Defines a graphic metafile. A metafile contains records that describe a sequence of graphics operations that can be recorded (constructed) and played back (displayed). This class is not inheritable.
Inheritance Hierarchy

Namespace:  System.Drawing.Imaging
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.10.0.0 (20.10.0)
Syntax
C#
public sealed class Metafile : Image

The Metafile type exposes the following members.

Constructors
  NameDescription
Public methodMetafile(Stream)
Initializes a new instance of the Metafile class from the specified data stream.
Public methodMetafile(String)
Initializes a new instance of the Metafile class from the specified file name.
Public methodMetafile(IntPtr, Boolean)
Initializes a new instance of the Metafile class from the specified handle.
Public methodMetafile(IntPtr, EmfType)
Initializes a new instance of the Metafile class from the specified handle to a device context and an EmfType enumeration that specifies the format of the Metafile.
Public methodMetafile(Stream, IntPtr, EmfType)
Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and an EmfType enumeration that specifies the format of the Metafile.
Public methodMetafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and an EmfType enumeration that specifies the format of the Metafile.
Properties
  NameDescription
Public propertyFlags
Gets the integer representing a bitwise combination of ImageFlags for this Image.
(Inherited from Image.)
Public propertyFrameDimensionsList
Gets an array of GUIDs that represent the dimensions of frames within this Image.
(Inherited from Image.)
Public propertyHeight
Gets the height, in pixels, of this Metafile.
(Overrides ImageHeight.)
Public propertyHorizontalResolution
Gets the horizontal resolution, in pixels per inch, of this Image.
(Inherited from Image.)
Public propertyPalette
Gets or sets the color palette used for this Image.
(Inherited from Image.)
Public propertyPhysicalDimension
Gets the width and height of this image.
(Inherited from Image.)
Public propertyPixelFormat
Gets the pixel format for this Image.
(Inherited from Image.)
Public propertyPropertyIdList
Gets IDs of the property items stored in this Image.
(Inherited from Image.)
Public propertyPropertyItems
Gets all the property items (pieces of metadata) stored in this Image.
(Inherited from Image.)
Public propertyRawFormat
Gets the file format of this Image.
(Inherited from Image.)
Public propertySize
Gets the width and height, in pixels, of this image.
(Inherited from Image.)
Public propertyVerticalResolution
Gets the vertical resolution, in pixels per inch, of this Image.
(Inherited from Image.)
Public propertyWidth
Gets the width, in pixels, of this Metafile.
(Overrides ImageWidth.)
Methods
  NameDescription
Public methodClone
Creates an exact copy of this Image.
(Inherited from Image.)
Public methodDispose
Releases all resources used by this Image.
(Inherited from Image.)
Public methodEquals (Inherited from Object.)
Public methodGetBounds
Gets the bounds of the image in the specified unit.
(Inherited from Image.)
Public methodGetFrameCount
Returns the number of frames of the specified dimension.
(Inherited from Image.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetHenhmetafile
Returns a Windows handle to an enhanced Metafile.
Public methodGetMetafileHeader
Returns the MetafileHeader associated with this Metafile.
Public methodStatic memberGetMetafileHeader(Stream)
Returns the MetafileHeader associated with the specified Metafile.
Public methodStatic memberGetMetafileHeader(String)
Returns the MetafileHeader associated with the specified Metafile.
Public methodGetThumbnailImage
Returns a thumbnail for this Image.
(Inherited from Image.)
Public methodGetType (Inherited from Object.)
Public methodPlayRecord
Plays an individual metafile record.
Public methodRotateFlip
This method rotates, flips, or rotates and flips the Image.
(Inherited from Image.)
Public methodSave(String)
Saves this Image to the specified file or stream.
(Inherited from Image.)
Public methodSave(Stream, ImageFormat)
Saves this image to the specified stream in the specified format.
(Inherited from Image.)
Public methodSave(String, ImageFormat)
Saves this Image to the specified file in the specified format.
(Inherited from Image.)
Public methodSave(Stream, ImageCodecInfo, EncoderParameters)
Saves this image to the specified stream, with the specified encoder and image encoder parameters.
(Inherited from Image.)
Public methodSave(String, ImageCodecInfo, EncoderParameters)
Saves this Image to the specified file, with the specified encoder and image-encoder parameters.
(Inherited from Image.)
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.
(Inherited from Image.)
Public methodSaveAdd(Image, EncoderParameters)
Adds a frame to the file or stream specified in a previous call to the Save(String) method.
(Inherited from Image.)
Public methodSelectActiveFrame
Selects the frame specified by the dimension and index.
(Inherited from Image.)
Public methodToString (Inherited from Object.)
See Also