Syntax
public class Buffer1bppV : Buffer1bpp, IPixelBuffer, IDisposable
Constructors
Buffer1bppV()
Creates a new empty Buffer1bpp object
Declaration
public Buffer1bppV()
Buffer1bppV(int, int)
Creates a new Buffer1bppV object
Declaration
public Buffer1bppV(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | width of buffer in pixels |
int | height | height of buffer in pixels |
Buffer1bppV(int, int, byte[])
Creates a new Buffer1bppV object
Declaration
public Buffer1bppV(int width, int height, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
int | width | width of buffer in pixels |
int | height | height of buffer in pixels |
byte[] | buffer | data to copy into buffer |
Buffer1bppV(int, int, int)
Creates a new Buffer1bppV object
Declaration
public Buffer1bppV(int width, int height, int pageSize)
Parameters
Type | Name | Description |
---|---|---|
int | width | width of buffer in pixels |
int | height | height of buffer in pixels |
int | pageSize | the display page size, this will pad the total buffer size to multiples of the page size |
Methods
Fill(int, int, int, int, Color)
Fill with a color
Declaration
public override void Fill(int x, int y, int width, int height, Color color)
Parameters
Type | Name | Description |
---|---|---|
int | x | X start position in pixels |
int | y | Y start position in pixels |
int | width | Width in pixels |
int | height | Height in pixels |
Color | color | The fill color |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Throws an exception if fill area is beyond the buffer bounds |
GetPixelIsEnabled(int, int)
Is the pixel enabled / on for a given location
Declaration
public override bool GetPixelIsEnabled(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
int | x | x location in pixels |
int | y | y location in pixels |
Returns
Type | Description |
---|---|
bool | true if pixel is set / enabled |
Overrides
InvertPixel(int, int)
Invert a pixel
Declaration
public override void InvertPixel(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
int | x | x position of pixel |
int | y | y position of pixel |
Overrides
SetPixel(int, int, bool)
Set a pixel in the display buffer
Declaration
public override void SetPixel(int x, int y, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
int | x | x position in pixels from left |
int | y | y position in pixels from top |
bool | enabled | is pixel enabled (on) |
Overrides
WriteBuffer(int, int, IPixelBuffer)
Write a buffer to specific location to the current buffer
Declaration
public override void WriteBuffer(int x, int y, IPixelBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
int | x | x origin |
int | y | y origin |
IPixelBuffer | buffer | buffer to write |