Click or drag to resize

PdfImage Class

Represents the base class for images.
Inheritance Hierarchy

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public abstract class PdfImage : PdfShapeWidget

The PdfImage type exposes the following members.

Constructors
Name Description
Protected method PdfImage
Initializes a new instance of the PdfImage class
Top
Properties
Name Description
Public property ActiveFrame
Gets or sets the active frame of the image.
Public property FrameCount
Gets the number of frames in the image.
Public property Height
Gets the height of the image in pixels.
Public property HorizontalResolution
Gets the horizontal resolution, in pixels per inch, of this Image.
Public property PhysicalDimension
Returns the size of the image in points.
Public property PngDirectToJpeg
If True, png direct convert to Jpx and no mask.
Public property VerticalResolution
Gets the vertical resolution, in pixels per inch, of this Image.
Public property Width
Gets the width of the image in pixels.
Top
Methods
Name Description
Public method Dispose
Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
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.
(Overrides PdfGraphicsWidget DrawInternal(PdfCanvas) .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method Static member FromFile
Creates PdfImage from a file.
Public method Static member FromImage
Converts aobject into a PDF image.
Public method Static member FromRtf(String, Single, PdfImageType) Obsolete.
Creates a new image instance from RTF text.
Public method Static member FromRtf(String, Single, PdfImageType, PdfStringFormat) Obsolete.
Creates a new image instance from RTF text.
Public method Static member FromRtf(String, Single, Single, PdfImageType) Obsolete.
Creates a new image instance from RTF text.
Public method Static member FromRtf(String, Single, Single, PdfImageType, PdfStringFormat) Obsolete.
Creates a new image instance from RTF text.
Public method Static member FromStream
Creates PdfImage from stream.
Public method GetBounds
Gets the bounds.
(Inherited from PdfShapeWidget .)
Protected method GetBoundsInternal
Gets bounds of image.
(Overrides PdfShapeWidget GetBoundsInternal .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method Static member GetPixelSize
Calculates the width and height of the image.
Protected method GetPointSize(Single, Single)
Calculates size of the image in points.
Protected method GetPointSize(Single, Single, Single, Single)
Calculates size of the image in points.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method Layout
Layouts the element.
(Inherited from PdfShapeWidget .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method SetResolution
Sets resolution of the image.
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