Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRasterRenderTarget

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

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

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 requiredposition: 0
height System.Int32 requiredposition: 1
supersampling System.Int32 = 1 optionalposition: 2
background System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 3

Methods

public Void BlendPixel(Int32 x, Int32 y, OfficeColor color) #
Returns: Void

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

Parameters

x System.Int32 requiredposition: 0
y System.Int32 requiredposition: 1
color OfficeIMO.Drawing.OfficeColor requiredposition: 2
public Void Fill(OfficeColor color) #
Returns: Void

Fills the internal render buffer.

Parameters

color OfficeIMO.Drawing.OfficeColor requiredposition: 0
public OfficeColor GetPixel(Int32 x, Int32 y) #
Returns: OfficeColor

Gets a render-buffer pixel.

Parameters

x System.Int32 requiredposition: 0
y System.Int32 requiredposition: 1
public Byte[] ResolveRgba() #
Returns: Byte[]

Resolves the render target into output-size RGBA bytes.

public Void SetPixel(Int32 x, Int32 y, OfficeColor color) #
Returns: Void

Sets a render-buffer pixel without alpha blending.

Parameters

x System.Int32 requiredposition: 0
y System.Int32 requiredposition: 1
color OfficeIMO.Drawing.OfficeColor requiredposition: 2

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.