Skip to content

PdfRgbaByteRenderingSurface Class

Definition

Namespace: Xfinium.Pdf.Rendering.RenderingSurfaces

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

C#
public class PdfRgbaByteRenderingSurface : PdfByteRenderingSurface, IImageDataProvider

Inheritance: Object → PdfRenderingSurface → PdfByteRenderingSurface → PdfRgbaByteRenderingSurface

Implements: IImageDataProvider

Constructors

Name Description
PdfRgbaByteRenderingSurface(Int32,Int32) Initializes a new PdfRgbaByteRenderingSurface object.
PdfRgbaByteRenderingSurface() Initializes a new PdfRgbaByteRenderingSurface object with an empty storage.

Properties

Name Description
Bitmap Gets the surface storage.
(inherited from PdfByteRenderingSurface)
Height Gets the surface height.
(inherited from PdfRenderingSurface)
Type Gets the type of the rendering surface.
(inherited from PdfRenderingSurface)
Width Gets the surface width.
(inherited from PdfRenderingSurface)

Methods

Name Description
ConvertFromBgra Converts the surface from BGRA to its native format.
ConvertFromRgba Converts the surface from default rendering layut (ARGB int or RGBA byte) to its native format.
FlipVertical Flips the surface bottom-up
Save Saves the rendering surface to the specified file.
(inherited from PdfRenderingSurface)
SetColorForOpaquePixels Adjusts the surface transparency with the new alpha.
(inherited from PdfByteRenderingSurface)