Skip to content

T_PDFiumSharp_PDFiumBitmap

ArgusMagnus edited this page Apr 5, 2017 · 3 revisions

PDFiumBitmap Class

A bitmap to which a PdfPage can be rendered.

Inheritance Hierarchy

System.Object
  PDFiumSharp.Types.NativeWrapper(FPDF_BITMAP)
    PDFiumSharp.PDFiumBitmap
Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0

Syntax

C#

public sealed class PDFiumBitmap : NativeWrapper<FPDF_BITMAP>

The PDFiumBitmap type exposes the following members.

Constructors

 

Name Description
Public method PDFiumBitmap(Int32, Int32, Boolean) Creates a new PDFiumBitmap. Unmanaged memory is allocated which must be freed by calling Dispose(FPDF_BITMAP).
Public method PDFiumBitmap(Int32, Int32, BitmapFormats, IntPtr, Int32) Creates a new PDFiumBitmap using memory allocated by the caller. The caller is responsible for freeing the memory and that the adress stays valid during the lifetime of the returned PDFiumBitmap.
  Back to Top

Properties

 

Name Description
Public property BytesPerPixel
Public property Format
Public property Handle Handle which can be used with the native PDFium functions. (Inherited from NativeWrapper(T).)
Public property Height
Public property IsDisposed Gets a value indicating whether Dispose() was already called on this instance. (Inherited from NativeWrapper(T).)
Public property Scan0
Public property Stride
Public property Width
  Back to Top

Methods

 

Name Description
Public method AsBmpStream Exposes the underlying image data directly as read-only stream in the BMP file format.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Fill Fills the whole PDFiumBitmap with color. The pixel values in the rectangle are replaced and not blended.
Public method FillRectangle Fills a rectangle in the PDFiumBitmap with color. The pixel values in the rectangle are replaced and not blended.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Save(Stream, Double, Double) Saves the PDFiumBitmap in the BMP file format.
Public method Save(String, Double, Double) Saves the PDFiumBitmap in the BMP file format.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

PDFiumSharp Namespace

Clone this wiki locally