Metafile Metafile Metafile Metafile Class

Definition

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.

public ref class Metafile sealed : System::Drawing::Image
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public sealed class Metafile : System.Drawing.Image
type Metafile = class
    inherit Image
Public NotInheritable Class Metafile
Inherits Image
Inheritance
Attributes

Examples

The following code example demonstrates how to create a Metafile and use the PlayRecord method.


using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;

// for Marshal.Copy
using System.Runtime.InteropServices; 

public class Form1 : Form
{
    private Metafile metafile1;
    private Graphics.EnumerateMetafileProc metafileDelegate;
    private Point destPoint;
    public Form1()
    {
        metafile1 = new Metafile(@"C:\Test.wmf");
        metafileDelegate = new Graphics.EnumerateMetafileProc(MetafileCallback);
        destPoint = new Point(20, 10);
    }
    protected override void OnPaint(PaintEventArgs e)
    {
        e.Graphics.EnumerateMetafile(metafile1, destPoint, metafileDelegate);
    }
    private bool MetafileCallback(
       EmfPlusRecordType recordType,
       int flags,
       int dataSize,
       IntPtr data,
       PlayRecordCallback callbackData)
    {
        byte[] dataArray = null;
        if (data != IntPtr.Zero)
        {
            // Copy the unmanaged record to a managed byte buffer 
            // that can be used by PlayRecord.
            dataArray = new byte[dataSize];
            Marshal.Copy(data, dataArray, 0, dataSize);
        }

        metafile1.PlayRecord(recordType, flags, dataSize, dataArray);

        return true;
    }

    static void Main()
    {
        Application.Run(new Form1());
    }
}
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Windows.Forms
' for Marshal.Copy
Imports System.Runtime.InteropServices


Public Class Form1
    Inherits Form
    Private metafile1 As Metafile
    Private metafileDelegate As Graphics.EnumerateMetafileProc
    Private destPoint As Point
    
    Public Sub New() 
        metafile1 = New Metafile("C:\test.wmf")
        metafileDelegate = New Graphics.EnumerateMetafileProc(AddressOf MetafileCallback)
        destPoint = New Point(20, 10)
    
    End Sub
    
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) 
        e.Graphics.EnumerateMetafile(metafile1, destPoint, metafileDelegate)
    
    End Sub
    
    Private Function MetafileCallback(ByVal recordType As _
        EmfPlusRecordType, ByVal flags As Integer, ByVal dataSize As Integer, _
        ByVal data As IntPtr, ByVal callbackData As PlayRecordCallback) As Boolean

        Dim dataArray As Byte() = Nothing
        If data <> IntPtr.Zero Then

            ' Copy the unmanaged record to a managed byte buffer 
            ' that can be used by PlayRecord.
            dataArray = New Byte(dataSize) {}
            Marshal.Copy(data, dataArray, 0, dataSize)
        End If

        metafile1.PlayRecord(recordType, flags, dataSize, dataArray)
        Return True

    End Function
    
    Shared Sub Main() 
        Application.Run(New Form1())
    End Sub

End Class

Remarks

When you use the Save method to save a graphic image as a Windows Metafile Format (WMF) or Enhanced Metafile Format (EMF) file, the resulting file is saved as a Portable Network Graphics (PNG) file instead. This behavior occurs because the GDI+ component of the .NET Framework does not have an encoder that you can use to save files as .wmf or .emf files.

Constructors

Metafile(IntPtr, Boolean) Metafile(IntPtr, Boolean) Metafile(IntPtr, Boolean) Metafile(IntPtr, Boolean)

Initializes a new instance of the Metafile class from the specified handle.

Metafile(IntPtr, EmfType) Metafile(IntPtr, EmfType) Metafile(IntPtr, EmfType) Metafile(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.

Metafile(IntPtr, EmfType, String) Metafile(IntPtr, EmfType, String) Metafile(IntPtr, EmfType, String) Metafile(IntPtr, EmfType, String)

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. A string can be supplied to name the file.

Metafile(IntPtr, Rectangle) Metafile(IntPtr, Rectangle) Metafile(IntPtr, Rectangle) Metafile(IntPtr, Rectangle)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle.

Metafile(IntPtr, Rectangle, MetafileFrameUnit) Metafile(IntPtr, Rectangle, MetafileFrameUnit) Metafile(IntPtr, Rectangle, MetafileFrameUnit) Metafile(IntPtr, Rectangle, MetafileFrameUnit)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied unit of measure.

Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. A string can be provided to name the file.

Metafile(IntPtr, RectangleF) Metafile(IntPtr, RectangleF) Metafile(IntPtr, RectangleF) Metafile(IntPtr, RectangleF)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle.

Metafile(IntPtr, RectangleF, MetafileFrameUnit) Metafile(IntPtr, RectangleF, MetafileFrameUnit) Metafile(IntPtr, RectangleF, MetafileFrameUnit) Metafile(IntPtr, RectangleF, MetafileFrameUnit)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied unit of measure.

Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. A string can be provided to name the file.

Metafile(IntPtr, WmfPlaceableFileHeader) Metafile(IntPtr, WmfPlaceableFileHeader) Metafile(IntPtr, WmfPlaceableFileHeader) Metafile(IntPtr, WmfPlaceableFileHeader)

Initializes a new instance of the Metafile class from the specified handle and a WmfPlaceableFileHeader.

Metafile(IntPtr, WmfPlaceableFileHeader, Boolean) Metafile(IntPtr, WmfPlaceableFileHeader, Boolean) Metafile(IntPtr, WmfPlaceableFileHeader, Boolean) Metafile(IntPtr, WmfPlaceableFileHeader, Boolean)

Initializes a new instance of the Metafile class from the specified handle and a WmfPlaceableFileHeader. Also, the deleteWmf parameter can be used to delete the handle when the metafile is deleted.

Metafile(Stream) Metafile(Stream) Metafile(Stream) Metafile(Stream)

Initializes a new instance of the Metafile class from the specified data stream.

Metafile(Stream, IntPtr) Metafile(Stream, IntPtr) Metafile(Stream, IntPtr) Metafile(Stream, IntPtr)

Initializes a new instance of the Metafile class from the specified data stream.

Metafile(Stream, IntPtr, EmfType) Metafile(Stream, IntPtr, EmfType) Metafile(Stream, IntPtr, EmfType) Metafile(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.

Metafile(Stream, IntPtr, EmfType, String) Metafile(Stream, IntPtr, EmfType, String) Metafile(Stream, IntPtr, EmfType, String) Metafile(Stream, IntPtr, EmfType, String)

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. Also, a string that contains a descriptive name for the new Metafile can be added.

Metafile(Stream, IntPtr, Rectangle) Metafile(Stream, IntPtr, Rectangle) Metafile(Stream, IntPtr, Rectangle) Metafile(Stream, IntPtr, Rectangle)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and a Rectangle structure that represents the rectangle that bounds the new Metafile.

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, and the supplied unit of measure.

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. A string that contains a descriptive name for the new Metafile can be added.

Metafile(Stream, IntPtr, RectangleF) Metafile(Stream, IntPtr, RectangleF) Metafile(Stream, IntPtr, RectangleF) Metafile(Stream, IntPtr, RectangleF)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and a RectangleF structure that represents the rectangle that bounds the new Metafile.

Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, and the supplied unit of measure.

Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(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, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. A string that contains a descriptive name for the new Metafile can be added.

Metafile(String) Metafile(String) Metafile(String) Metafile(String)

Initializes a new instance of the Metafile class from the specified file name.

Metafile(String, IntPtr) Metafile(String, IntPtr) Metafile(String, IntPtr) Metafile(String, IntPtr)

Initializes a new instance of the Metafile class with the specified file name.

Metafile(String, IntPtr, EmfType) Metafile(String, IntPtr, EmfType) Metafile(String, IntPtr, EmfType) Metafile(String, IntPtr, EmfType)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(String, IntPtr, EmfType, String) Metafile(String, IntPtr, EmfType, String) Metafile(String, IntPtr, EmfType, String) Metafile(String, IntPtr, EmfType, String)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, and an EmfType enumeration that specifies the format of the Metafile. A descriptive string can be added, as well.

Metafile(String, IntPtr, Rectangle) Metafile(String, IntPtr, Rectangle) Metafile(String, IntPtr, Rectangle) Metafile(String, IntPtr, Rectangle)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, and a Rectangle structure that represents the rectangle that bounds the new Metafile.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, and the supplied unit of measure.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. A descriptive string can also be added.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String) Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, and the supplied unit of measure. A descriptive string can also be added.

Metafile(String, IntPtr, RectangleF) Metafile(String, IntPtr, RectangleF) Metafile(String, IntPtr, RectangleF) Metafile(String, IntPtr, RectangleF)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, and a RectangleF structure that represents the rectangle that bounds the new Metafile.

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, and the supplied unit of measure.

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. A descriptive string can also be added.

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String) Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String)

Initializes a new instance of the Metafile class with the specified file name, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, and the supplied unit of measure. A descriptive string can also be added.

Methods

Clone() Clone() Clone() Clone()

Creates an exact copy of this Image.

(Inherited from Image)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose() Dispose() Dispose() Dispose()

Releases all resources used by this Image.

(Inherited from Image)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

(Inherited from Image)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBounds(GraphicsUnit) GetBounds(GraphicsUnit) GetBounds(GraphicsUnit) GetBounds(GraphicsUnit)

Gets the bounds of the image in the specified unit.

(Inherited from Image)
GetEncoderParameterList(Guid) GetEncoderParameterList(Guid) GetEncoderParameterList(Guid) GetEncoderParameterList(Guid)

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

(Inherited from Image)
GetFrameCount(FrameDimension) GetFrameCount(FrameDimension) GetFrameCount(FrameDimension) GetFrameCount(FrameDimension)

Returns the number of frames of the specified dimension.

(Inherited from Image)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetHenhmetafile() GetHenhmetafile() GetHenhmetafile() GetHenhmetafile()

Returns a Windows handle to an enhanced Metafile.

GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetMetafileHeader() GetMetafileHeader() GetMetafileHeader() GetMetafileHeader()

Returns the MetafileHeader associated with this Metafile.

GetMetafileHeader(IntPtr) GetMetafileHeader(IntPtr) GetMetafileHeader(IntPtr) GetMetafileHeader(IntPtr)

Returns the MetafileHeader associated with the specified Metafile.

GetMetafileHeader(IntPtr, WmfPlaceableFileHeader) GetMetafileHeader(IntPtr, WmfPlaceableFileHeader) GetMetafileHeader(IntPtr, WmfPlaceableFileHeader) GetMetafileHeader(IntPtr, WmfPlaceableFileHeader)

Returns the MetafileHeader associated with the specified Metafile.

GetMetafileHeader(Stream) GetMetafileHeader(Stream) GetMetafileHeader(Stream) GetMetafileHeader(Stream)

Returns the MetafileHeader associated with the specified Metafile.

GetMetafileHeader(String) GetMetafileHeader(String) GetMetafileHeader(String) GetMetafileHeader(String)

Returns the MetafileHeader associated with the specified Metafile.

GetPropertyItem(Int32) GetPropertyItem(Int32) GetPropertyItem(Int32) GetPropertyItem(Int32)

Gets the specified property item from this Image.

(Inherited from Image)
GetThumbnailImage(Int32, Int32, Image+GetThumbnailImageAbort, IntPtr) GetThumbnailImage(Int32, Int32, Image+GetThumbnailImageAbort, IntPtr) GetThumbnailImage(Int32, Int32, Image+GetThumbnailImageAbort, IntPtr) GetThumbnailImage(Int32, Int32, Image+GetThumbnailImageAbort, IntPtr)

Returns a thumbnail for this Image.

(Inherited from Image)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
PlayRecord(EmfPlusRecordType, Int32, Int32, Byte[]) PlayRecord(EmfPlusRecordType, Int32, Int32, Byte[]) PlayRecord(EmfPlusRecordType, Int32, Int32, Byte[]) PlayRecord(EmfPlusRecordType, Int32, Int32, Byte[])

Plays an individual metafile record.

RemovePropertyItem(Int32) RemovePropertyItem(Int32) RemovePropertyItem(Int32) RemovePropertyItem(Int32)

Removes the specified property item from this Image.

(Inherited from Image)
RotateFlip(RotateFlipType) RotateFlip(RotateFlipType) RotateFlip(RotateFlipType) RotateFlip(RotateFlipType)

Rotates, flips, or rotates and flips the Image.

(Inherited from Image)
Save(Stream, ImageCodecInfo, EncoderParameters) Save(Stream, ImageCodecInfo, EncoderParameters) Save(Stream, ImageCodecInfo, EncoderParameters) Save(Stream, ImageCodecInfo, EncoderParameters)

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

(Inherited from Image)
Save(Stream, ImageFormat) Save(Stream, ImageFormat) Save(Stream, ImageFormat) Save(Stream, ImageFormat)

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

(Inherited from Image)
Save(String) Save(String) Save(String) Save(String)

Saves this Image to the specified file or stream.

(Inherited from Image)
Save(String, ImageCodecInfo, EncoderParameters) Save(String, ImageCodecInfo, EncoderParameters) Save(String, ImageCodecInfo, EncoderParameters) Save(String, ImageCodecInfo, EncoderParameters)

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

(Inherited from Image)
Save(String, ImageFormat) Save(String, ImageFormat) Save(String, ImageFormat) Save(String, ImageFormat)

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

(Inherited from Image)
SaveAdd(EncoderParameters) SaveAdd(EncoderParameters) SaveAdd(EncoderParameters) SaveAdd(EncoderParameters)

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

(Inherited from Image)
SaveAdd(Image, EncoderParameters) SaveAdd(Image, EncoderParameters) SaveAdd(Image, EncoderParameters) SaveAdd(Image, EncoderParameters)

Adds a frame to the file or stream specified in a previous call to the Save method.

(Inherited from Image)
SelectActiveFrame(FrameDimension, Int32) SelectActiveFrame(FrameDimension, Int32) SelectActiveFrame(FrameDimension, Int32) SelectActiveFrame(FrameDimension, Int32)

Selects the frame specified by the dimension and index.

(Inherited from Image)
SetPropertyItem(PropertyItem) SetPropertyItem(PropertyItem) SetPropertyItem(PropertyItem) SetPropertyItem(PropertyItem)

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

(Inherited from Image)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Properties

Flags Flags Flags Flags

Gets attribute flags for the pixel data of this Image.

(Inherited from Image)
FrameDimensionsList FrameDimensionsList FrameDimensionsList FrameDimensionsList

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

(Inherited from Image)
Height Height Height Height

Gets the height, in pixels, of this Image.

(Inherited from Image)
HorizontalResolution HorizontalResolution HorizontalResolution HorizontalResolution

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

(Inherited from Image)
Palette Palette Palette Palette

Gets or sets the color palette used for this Image.

(Inherited from Image)
PhysicalDimension PhysicalDimension PhysicalDimension PhysicalDimension

Gets the width and height of this image.

(Inherited from Image)
PixelFormat PixelFormat PixelFormat PixelFormat

Gets the pixel format for this Image.

(Inherited from Image)
PropertyIdList PropertyIdList PropertyIdList PropertyIdList

Gets IDs of the property items stored in this Image.

(Inherited from Image)
PropertyItems PropertyItems PropertyItems PropertyItems

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

(Inherited from Image)
RawFormat RawFormat RawFormat RawFormat

Gets the file format of this Image.

(Inherited from Image)
Size Size Size Size

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

(Inherited from Image)
Tag Tag Tag Tag

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

(Inherited from Image)
VerticalResolution VerticalResolution VerticalResolution VerticalResolution

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

(Inherited from Image)
Width Width Width Width

Gets the width, in pixels, of this Image.

(Inherited from Image)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object.

(Inherited from Image)

Applies to