Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRasterImage

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

Dependency-free RGBA raster image buffer.

Inheritance

  • Object
  • OfficeRasterImage

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 OfficeRasterImage(Int32 width, Int32 height, Nullable<OfficeColor> background = null) #

Creates a new RGBA image buffer.

Parameters

width System.Int32 requiredposition: 0
height System.Int32 requiredposition: 1
background System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 2

Methods

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

Alpha blends a 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 whole image with a color.

Parameters

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

Gets the color of a pixel.

Parameters

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

Returns a copy of the RGBA pixels.

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

Sets a 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; } #

Image width in pixels.

public Int32 Height { get; } #

Image height in pixels.