Table of Contents

Class BitmapImageNeo3

Namespace
Iot.Device.Ws28xx.Esp32
Assembly
Iot.Device.Ws28xx.Esp32.dll

Special 24bit RGB format for Neo pixel LEDs where each bit is converted to 3 bits. A one is converted to 110, a zero is converted to 100.

public class BitmapImageNeo3 : BitmapImage
Inheritance
BitmapImageNeo3
Derived
Inherited Members

Constructors

BitmapImageNeo3(int, int)

Initializes a new instance of the BitmapImageNeo3 class.

public BitmapImageNeo3(int width, int height)

Parameters

width int

Width of the image.

height int

Height of the image.

Fields

BytesPerComponent

The number of bytes per component.

protected const int BytesPerComponent = 3

Field Value

int

BytesPerPixel

The number of bytes per pixel.

protected const int BytesPerPixel = 9

Field Value

int

Lookup

Lookup table for color conversion.

protected static readonly byte[] Lookup

Field Value

byte[]

Methods

Clear()

Clears whole image.

public override void Clear()

Clear(int, int)

Clears selected pixel.

public override void Clear(int x, int y)

Parameters

x int

X pixel.

y int

Y pixel.

SetPixel(int, int, byte, byte, byte)

Sets pixel at specific position.

public override void SetPixel(int x, int y, byte r, byte g, byte b)

Parameters

x int

X coordinate of the pixel.

y int

Y coordinate of the pixel.

r byte

Red color.

g byte

Green color.

b byte

Blue color.

SetPixel(int, int, Color)

Sets pixel at specific position.

public override void SetPixel(int x, int y, Color c)

Parameters

x int

X coordinate of the pixel.

y int

Y coordinate of the pixel.

c Color