API Reference
Class
OfficeRasterRenderTarget
Supersampled RGBA render target used by dependency-free raster renderers.
Inheritance
- Object
- OfficeRasterRenderTarget
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Constructor OfficeRasterCanvas.OfficeRasterCanvas
- Constructor OfficeRasterCanvas.OfficeRasterCanvas
Constructors
public OfficeRasterRenderTarget(Int32 width, Int32 height, Int32 supersampling = 1, Nullable<OfficeColor> background = null) #Creates a render target with an optional supersampling factor.
Parameters
- width System.Int32
- height System.Int32
- supersampling System.Int32 = 1
- background System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
Methods
public Void BlendPixel(Int32 x, Int32 y, OfficeColor color) #Returns:
VoidAlpha blends a render-buffer pixel over the current pixel.
Parameters
- x System.Int32
- y System.Int32
- color OfficeIMO.Drawing.OfficeColor
public Void Fill(OfficeColor color) #Returns:
VoidFills the internal render buffer.
Parameters
- color OfficeIMO.Drawing.OfficeColor
public OfficeColor GetPixel(Int32 x, Int32 y) #Returns:
OfficeColorGets a render-buffer pixel.
Parameters
- x System.Int32
- y System.Int32
public Void SetPixel(Int32 x, Int32 y, OfficeColor color) #Returns:
VoidSets a render-buffer pixel without alpha blending.
Parameters
- x System.Int32
- y System.Int32
- color OfficeIMO.Drawing.OfficeColor
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Int32 Width { get; } #Resolved output width in pixels.
public Int32 Height { get; } #Resolved output height in pixels.
public Int32 Supersampling { get; } #Supersampling factor applied to render coordinates.
public Int32 RenderWidth { get; } #Internal render-buffer width in pixels.
public Int32 RenderHeight { get; } #Internal render-buffer height in pixels.