Table of Contents

Class BitmapImage

Namespace
Iot.Device.Graphics
Assembly
Iot.Device.CharacterLcd.dll

Represents bitmap image

public abstract class BitmapImage
Inheritance
BitmapImage

Constructors

BitmapImage(byte[], int, int, int)

Initializes a BitmapImage instance with the specified data, width, height and stride.

protected BitmapImage(byte[] data, int width, int height, int stride)

Parameters

data byte[]

Data representing the image (derived class defines a specific format)

width int

Width of the image

height int

Height of the image

stride int

Number of bytes per row

Properties

Data

Data related to the image (derived class defines a specific format)

public SpanByte Data { get; }

Property Value

SpanByte

Height

Height of the image

public int Height { get; }

Property Value

int

Stride

Number of bytes per row

public int Stride { get; }

Property Value

int

Width

Width of the image

public int Width { get; }

Property Value

int

Methods

Clear(Color)

Clears the image to specific color

public virtual void Clear(Color color = default)

Parameters

color Color

Color to clear the image. Defaults to black.

SetPixel(int, int, Color)

Sets pixel at specific position

public abstract void SetPixel(int x, int y, Color color)

Parameters

x int

X coordinate of the pixel

y int

Y coordinate of the pixel

color Color

Color to set the pixel to