Click or drag to resize

PdfMetafile Class

Class representing metafiles.
Inheritance Hierarchy

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfMetafile : PdfImage, 
	IDisposable

The PdfMetafile type exposes the following members.

Constructors
Name Description
Public method PdfMetafile(Metafile)
Initializes a new instance of the PdfMetafile class
Public method PdfMetafile(Stream)
Initializes a new instance of the PdfMetafile class
Public method PdfMetafile(String)
Initializes a new instance of the PdfMetafile class
Top
Properties
Name Description
Public property ActiveFrame
Gets or sets the active frame of the image.
(Inherited from PdfImage .)
Public property FrameCount
Gets the number of frames in the image.
(Inherited from PdfImage .)
Public property Height
Gets the height of the image in pixels.
(Inherited from PdfImage .)
Public property HorizontalResolution
Gets the horizontal resolution, in pixels per inch, of this Image.
(Inherited from PdfImage .)
Public property PageScale
Gets or sets the page scale.
Public property PageUnit
Gets or sets the page unit.
Public property PhysicalDimension
Returns the size of the image in points.
(Inherited from PdfImage .)
Public property PngDirectToJpeg
If True, png direct convert to Jpx and no mask.
(Inherited from PdfImage .)
Public property Quality
Gets or sets the quality.
Public property VerticalResolution
Gets the vertical resolution, in pixels per inch, of this Image.
(Inherited from PdfImage .)
Public property Width
Gets the width of the image in pixels.
(Inherited from PdfImage .)
Top
Methods
Name Description
Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Draw(PdfCanvas)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfCanvas, PointF)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfPageBase, PointF)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfCanvas, Single, Single)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfPageBase, PointF, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF, Boolean)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, Single, Single)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, Single, Single, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Protected method DrawInternal
Draws an element on the Graphics.
(Inherited from PdfImage .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize (Overrides Object Finalize .)
Public method GetBounds
Gets the bounds.
(Inherited from PdfShapeWidget .)
Protected method GetBoundsInternal
Gets bounds of image.
(Inherited from PdfImage .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetPointSize(Single, Single)
Calculates size of the image in points.
(Inherited from PdfImage .)
Protected method GetPointSize(Single, Single, Single, Single)
Calculates size of the image in points.
(Inherited from PdfImage .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method Layout (Overrides PdfShapeWidget Layout(PdfLayoutParams) .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method SetResolution
Sets resolution of the image.
(Inherited from PdfImage .)
Public method SetTransparency
Sets the transparency.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Events
Name Description
Public event BeginPageLayout
Event. Raises before the element should be printed on the page.
(Inherited from PdfLayoutWidget .)
Public event EndPageLayout
Event. Raises after the element was printed on the page.
(Inherited from PdfLayoutWidget .)
Top
See Also