Click or drag to resize

PdfBitmap Class

Represents the bitmap 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 class PdfBitmap : PdfImage, IDisposable

The PdfBitmap type exposes the following members.

Constructors
Name Description
Public method PdfBitmap(Image)
Initializes a new instance of the PdfBitmap class
Public method PdfBitmap(Stream)
Creates new PdfBitmap instance.
Public method PdfBitmap(String)
Creates new PdfBitmap instance.
Top
Properties
Name Description
Public property ActiveFrame
Gets or sets the active frame of the bitmap.
(Overrides PdfImage ActiveFrame .)
Public property FrameCount
Gets the number of frames in the bitmap.
(Overrides PdfImage FrameCount .)
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 Mask
Gets or sets the mask of bitmap.
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. The range is from 0 to 100, 100 is the best 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
Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
(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
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.
(Inherited from PdfImage .)
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