Skip to content

PDFGray8StripRenderingSurface

Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces

Defines a Gray8 strip based rendering surface

public class PDFGray8StripRenderingSurface : PDFStripRenderingSurface`1, O2S.Components.PDF4NET.Content.IImageDataProvider, IMaskRenderingSurface

Inheritance ObjectPDFRenderingSurfacePDFStripRenderingSurface<Byte>PDFGray8StripRenderingSurface
Implements IImageDataProvider, IMaskRenderingSurface

Fields

Constructors

PDFGray8StripRenderingSurface(Int32, Int32)

Initializes a new PDFGray8StripRenderingSurface object.

public PDFGray8StripRenderingSurface(int width, int height)

Parameters

width Int32
Surface width.

height Int32
Surface height.


PDFGray8StripRenderingSurface()

Initializes a new PDFGray8StripRenderingSurface object with an empty storage.

public PDFGray8StripRenderingSurface()

Properties

Bitmap

Gets the surface storage.

public Byte[][] Bitmap { get; }

Property Value

Byte[][]
Array 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

Adjust(Byte)

This method supports the internal library infrastructure.

public void Adjust(byte alpha)

Parameters

alpha Byte


ApplyTransferFunction(PDFFunction)

This method supports the internal library infrastructure.

public void ApplyTransferFunction(PDFFunction transferFunction)

Parameters

transferFunction PDFFunction


Expand(BoundingBox)

This method supports the internal library infrastructure.

public IMaskRenderingSurface Expand(BoundingBox expandBounds)

Parameters

expandBounds BoundingBox

Returns

IMaskRenderingSurface


GetIndexForPixel(Int32, Int32, Int32, Int32, Int32)

This method supports the internal library infrastructure.

public int GetIndexForPixel(int x, int y, int xOrigin, int yOrigin, int width)

Parameters

x Int32

y Int32

xOrigin Int32

yOrigin Int32

width Int32

Returns

Int32


GetMaskLine(Int32, Int32)

This method supports the internal library infrastructure.

public Byte[] GetMaskLine(int y, int yOrigin)

Parameters

y Int32

yOrigin Int32

Returns

Byte[]


GetMaskRenderer()

public object GetMaskRenderer()

Returns

Object


Merge(IMaskRenderingSurface, BoundingBox)

This method supports the internal library infrastructure.

public IMaskRenderingSurface Merge(IMaskRenderingSurface topMask, BoundingBox mergeBounds)

Parameters

topMask IMaskRenderingSurface

mergeBounds BoundingBox

Returns

IMaskRenderingSurface


Merge(IMaskRenderingSurface, IMaskRenderingSurface, BoundingBox)

This method supports the internal library infrastructure.

public IMaskRenderingSurface Merge(IMaskRenderingSurface _topMask, IMaskRenderingSurface _mergedMask, BoundingBox mergeBounds)

Parameters

_topMask IMaskRenderingSurface

_mergedMask IMaskRenderingSurface

mergeBounds BoundingBox

Returns

IMaskRenderingSurface


SetColorForOpaquePixels(Int32)

Adjusts the surface transparency with the new alpha.

public void SetColorForOpaquePixels(int argb)

Parameters

argb Int32


Union(IMaskRenderingSurface, IMaskRenderingSurface)

This method supports the internal library infrastructure.

public IMaskRenderingSurface Union(IMaskRenderingSurface _mask1, IMaskRenderingSurface _mask2)

Parameters

_mask1 IMaskRenderingSurface

_mask2 IMaskRenderingSurface

Returns

IMaskRenderingSurface