Skip to content

# PDFRgbaRenderingSurface<T>

Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces

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

    public class PDFRgbaRenderingSurface<T> : PDFRenderingSurface, O2S.Components.PDF4NET.Content.IImageDataProvider

Type Parameters

`T`

Inheritance Object → PDFRenderingSurface → PDFRgbaRenderingSurface<T>
Implements IImageDataProvider

## Fields

## Constructors

### PDFRgbaRenderingSurface(Int32, Int32)

Initializes a new PDFRgbaRenderingSurface<T> object.

    public PDFRgbaRenderingSurface(int width, int height)

Parameters

`width` Int32
Surface width.

`height` Int32
Surface height.

### PDFRgbaRenderingSurface()

Initializes a new PDFRgbaRenderingSurface<T> object with an empty storage.

    public PDFRgbaRenderingSurface()

## Properties

### Bitmap

Gets the surface storage.

    public T[] Bitmap { get; }

Property Value

T[]
Array that stores the page image in RGBA 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