Skip to content

PDFBgrRenderingSurface

Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces

Defines a BGR rendering surface that uses an array of bytes as storage.

public class PDFBgrRenderingSurface : PDFByteRenderingSurface, O2S.Components.PDF4NET.Content.IImageDataProvider

Inheritance ObjectPDFRenderingSurfacePDFByteRenderingSurfacePDFBgrRenderingSurface
Implements IImageDataProvider

Fields

Constructors

PDFBgrRenderingSurface(Int32, Int32)

Initializes a new PDFBgrRenderingSurface object.

public PDFBgrRenderingSurface(int width, int height)

Parameters

width Int32
Surface width.

height Int32
Surface height.


PDFBgrRenderingSurface()

Initializes a new PDFBgrRenderingSurface object with an empty storage.

public PDFBgrRenderingSurface()

Properties

Bitmap

Gets the surface storage.

public Byte[] Bitmap { get; }

Property Value

Byte[]
Array of ints that stores the page image in ARGB format.


Height

Gets or sets the surface height.

public int Height { get; }

Property Value

Int32
The height of the surface in pixels.


Width

Gets the surface width.

public int Width { get; }

Property Value

Int32
The width of the surface in pixels.


Methods

ConvertFromRgba()

Converts the surface from default rendering layut (ARGB int or RGBA byte) to its native format.

public void ConvertFromRgba()

Remarks

Aurora Native and GDI+ engines use BGRA format, Aurora Managed uses ARGB int and RGBA byte.