Class BitmapImageNeo3
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
Fields
BytesPerComponent
The number of bytes per component.
protected const int BytesPerComponent = 3
Field Value
BytesPerPixel
The number of bytes per pixel.
protected const int BytesPerPixel = 9
Field Value
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
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
intX coordinate of the pixel.
y
intY coordinate of the pixel.
r
byteRed color.
g
byteGreen color.
b
byteBlue color.
SetPixel(int, int, Color)
Sets pixel at specific position.
public override void SetPixel(int x, int y, Color c)