Click or drag to resize

PdfBitmap Class

Encapsulates a Device-Independent bitmap, which consists of the pixel data for a graphics image and its attributes. A Bitmap is an object used to work with images defined by pixel data.

An PdfBitmap use 1, 3 or 4 byte per pixel depended on a pixel format.

The byte order is BGRx (the last byte unused if no alpha channel) or BGRA.

Inheritance Hierarchy
SystemObject
  Patagames.Pdf.NetPdfBitmap

Namespace:  Patagames.Pdf.Net
Assembly:  Patagames.Pdf (in Patagames.Pdf.dll) Version: 3.43.2704
Syntax
public class PdfBitmap : IDisposable

The PdfBitmap type exposes the following members.

Constructors
  NameDescription
Public methodPdfBitmap(Int32, Int32, Boolean, Boolean)
Initializes a new instance of the PdfBitmap class with the specified size.
Public methodPdfBitmap(Int32, Int32, BitmapFormats, IntPtr, Int32)
Initializes a new instance of the PdfBitmap class with the specified size, extended pixel format, and pixel data.
Public methodPdfBitmap(Int32, Int32, FXDIBFormats, IntPtr, Int32)
Initializes a new instance of the PdfBitmap class with the specified size, pixel format, and pixel data.
Top
Properties
  NameDescription
Public propertyBPP
Gets bit per pixel
Public propertyBuffer
Gets data buffer of an PdfBitmap
Public propertyFormat
Gets bitmap format
Public propertyHandle
Gets the Pdfium SDK handle that the bitmap is bound to
Public propertyHasAlpha
Returns true if this bitmap has alpha channel
Public propertyHeight
Gets the number of pixels in a vertical line of the bitmap.
Public propertyImage
Gets the image that represents the PdfBitmap
Public propertyIsAlphaMask
Returns true if the bitmap has alpha mask
Public propertyIsCmyk
Returns true if this bitmap is CMYK image
Public propertyIsDisposed
Gets a value indicating whether the object has been disposed of.

Field Value

Type: 
true if the control has been disposed of; otherwise, false.
Public propertyIsOpaque
Returns true if this bitmap is opaque
Public propertyPalette
Gets or sets bitmap palette
Public propertyPaletteSize
Gets bitmap palette size
Public propertyPitch
Gets bitmap pitch
Public propertyStride
Gets number of bytes for each scan line in the bitmap buffer
Public propertyWidth
Gets the number of pixels in a horizontal line of the bitmap.
Top
Methods
  NameDescription
Public methodClone
Clone specified bitmap with specified clip
Public methodConvert
Convert specified bitmap
Public methodDispose
Releases all resources used by the PdfBitmap.
Protected methodDispose(Boolean)
Releases all resources used by the PdfImageObject.
Public methodFillRect(Rectangle, Color)
Fill a rectangle area in an PdfBitmap specified by a Rectangle structure.
Public methodFillRect(Int32, Int32, Int32, Int32, Color)
Fill a rectangle area in an PdfBitmap specified by a coordinate pair, a width, and a height.
Public methodFillRect(Int32, Int32, Int32, Int32, Color, BlendTypes)
Fill a rectangle area in an PdfBitmap specified by a coordinate pair, a width, and a height.
Public methodFillRectEx(Int32, Int32, Int32, Int32, Int32)
Fill a rectangle area in an PdfBitmap specified by a coordinate pair, a width, and a height.
Public methodFillRectEx(Int32, Int32, Int32, Int32, Int32, BlendTypes)
Fill a rectangle area in an PdfBitmap specified by a coordinate pair, a width, and a height.
Protected methodFinalize
Finalize object
(Overrides ObjectFinalize.)
Public methodFlipXY
Flip X and Y in specified bitmap
Public methodStatic memberFromFile
Creates an PdfBitmap from the specified file.
Public methodGetPaletteColorByIndex
Gets the palette color at specified index.
Public methodSetPaletteEntryByIndex
Sets the palette color at specified index.
Public methodStretchTo
Stretch specified bitmap with specified clip
Public methodSwapXY
Swap X and Y in specified bitmap
Top
See Also