PDFGray8RenderingSurface¶
Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces
Defines a Gray8 rendering surface that uses an array of bytes as storage.
public class PDFGray8RenderingSurface : PDFByteRenderingSurface, O2S.Components.PDF4NET.Content.IImageDataProvider, IMaskRenderingSurface
Inheritance Object → PDFRenderingSurface → PDFByteRenderingSurface → PDFGray8RenderingSurface
Implements IImageDataProvider, IMaskRenderingSurface
Fields¶
Constructors¶
PDFGray8RenderingSurface()¶
Initializes a new PDFGray8RenderingSurface object with an empty storage.
PDFGray8RenderingSurface(Int32, Int32)¶
Initializes a new PDFGray8RenderingSurface object.
Parameters
width Int32
Surface width.
height Int32
Surface height.
PDFGray8RenderingSurface(Int32, Int32, Int32, Int32)¶
Initializes a new PDFGray8RenderingSurface object.
Parameters
x Int32
y Int32
width Int32
Surface width.
height Int32
Surface height.
Properties¶
Bitmap¶
Gets the surface storage.
Property Value
Byte[]
Array of ints that stores the page image in ARGB format.
Height¶
Gets or sets the surface height.
Property Value
Int32
The height of the surface in pixels.
MaskBitmap¶
This property supports the internal library infrastructure.
Property Value
Width¶
Gets the surface width.
Property Value
Int32
The width of the surface in pixels.
Methods¶
Adjust(Byte)¶
This method supports the internal library infrastructure.
Parameters
alpha Byte
ApplyTransferFunction(PDFFunction)¶
This method supports the internal library infrastructure.
Parameters
transferFunction PDFFunction
Expand(BoundingBox)¶
This method supports the internal library infrastructure.
Parameters
expandBounds BoundingBox
Returns
Extract(BoundingBox)¶
This method supports the internal library infrastructure.
Parameters
extractBounds BoundingBox
Returns
GetIndexForPixel(Int32, Int32, Int32, Int32, Int32)¶
This method supports the internal library infrastructure.
Parameters
x Int32
y Int32
xOrigin Int32
yOrigin Int32
width Int32
Returns
GetMaskLine(Int32, Int32)¶
This method supports the internal library infrastructure.
Parameters
y Int32
yOrigin Int32
Returns
GetMaskRenderer()¶
Returns
Merge(IMaskRenderingSurface, BoundingBox)¶
This method supports the internal library infrastructure.
Parameters
topMask IMaskRenderingSurface
mergeBounds BoundingBox
Returns
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
Union(IMaskRenderingSurface, IMaskRenderingSurface)¶
This method supports the internal library infrastructure.
Parameters
_mask1 IMaskRenderingSurface
_mask2 IMaskRenderingSurface
Returns