Class
OfficeRasterRenderTarget
OfficeIMO.Drawing
Supersampled RGBA render target used by dependency-free raster renderers.
Inheritance
- object
- OfficeRasterRenderTarget
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 1
- Constructor OfficeRasterCanvas.OfficeRasterCanvas
Constructors
public OfficeRasterRenderTarget(int width, int height, int supersampling = 1, OfficeColor? background = null) #Creates a render target with an optional supersampling factor.
Parameters
- width int
- height int
- supersampling int = 1
- background OfficeIMO.OfficeColor? = null
Methods
public void BlendPixel(int x, int y, OfficeColor color) #Alpha blends a render-buffer pixel over the current pixel.
Parameters
- x int
- y int
- color OfficeIMO.OfficeColor
public void Fill(OfficeColor color) #Fills the internal render buffer.
Parameters
- color OfficeIMO.OfficeColor
public OfficeColor GetPixel(int x, int y) #Gets a render-buffer pixel.
Parameters
- x int
- y int
Returns
OfficeColorpublic void SetPixel(int x, int y, OfficeColor color) #Sets a render-buffer pixel without alpha blending.
Parameters
- x int
- y int
- color OfficeIMO.OfficeColor