Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeRasterRenderTarget

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

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

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 required
height int required
supersampling int = 1 optional
background OfficeIMO.OfficeColor? = null optional

Methods

public void BlendPixel(int x, int y, OfficeColor color) #

Alpha blends a render-buffer pixel over the current pixel.

Parameters

x int required
y int required
color OfficeIMO.OfficeColor required
public void Fill(OfficeColor color) #

Fills the internal render buffer.

Parameters

color OfficeIMO.OfficeColor required
public OfficeColor GetPixel(int x, int y) #

Gets a render-buffer pixel.

Parameters

x int required
y int required
public byte[] ResolveRgba() #

Resolves the render target into output-size RGBA bytes.

Returns

byte[]
public void SetPixel(int x, int y, OfficeColor color) #

Sets a render-buffer pixel without alpha blending.

Parameters

x int required
y int required
color OfficeIMO.OfficeColor required

Properties

public int Width { get; } #

Resolved output width in pixels.

public int Height { get; } #

Resolved output height in pixels.

public int Supersampling { get; } #

Supersampling factor applied to render coordinates.

public int RenderWidth { get; } #

Internal render-buffer width in pixels.

public int RenderHeight { get; } #

Internal render-buffer height in pixels.