Class FrameBuffer1BitPerPixel
A display frame buffer implementation for dual-color displays.
public class FrameBuffer1BitPerPixel : FrameBufferBase, IFrameBuffer
- Inheritance
-
FrameBuffer1BitPerPixel
- Implements
- Inherited Members
Constructors
FrameBuffer1BitPerPixel(int, int)
Initializes a new instance of the FrameBuffer1BitPerPixel class.
public FrameBuffer1BitPerPixel(int height, int width)
Parameters
FrameBuffer1BitPerPixel(int, int, byte[])
Initializes a new instance of the FrameBuffer1BitPerPixel class by copying the specified buffer.
public FrameBuffer1BitPerPixel(int height, int width, byte[] buffer)
Parameters
heightintThe height of the frame to manage.
widthintThe width of the frame to manage.
bufferbyte[]The starting frame buffer.
Properties
ColorFormat
Gets the color format used across this frame buffer.
public override ColorFormat ColorFormat { get; }
Property Value
Methods
Clear(Color)
Resets the current frame buffer to with its default starting values set to the specified color.
public override void Clear(Color color)
Parameters
colorColorThe color to use as a default value when clearing the frame buffer.
Fill(Point, int, int, Color)
Fill the specific portion of the frame buffer with the specified color.
public override void Fill(Point start, int width, int height, Color color)
Parameters
startPointThe starting position.
widthintThe width of the area.
heightintThe height of the area.
colorColorThe color value to use.
GetPixel(Point)
Gets the pixel at the specified position.
public override Color GetPixel(Point point)
Parameters
pointPointThe position to get the pixel from.
Returns
SetPixel(Point, Color)
Sets the value of the pixel at the specified position.
public override void SetPixel(Point point, Color pixelColor)
Parameters
WriteBuffer(IFrameBuffer, Point, Point, Point)
Copies the specified IFrameBuffer into the current frame buffer.
public override void WriteBuffer(IFrameBuffer buffer, Point start, Point end, Point destinationStart)
Parameters
bufferIFrameBufferThe IFrameBuffer to copy from.
startPointThe start position to copy from.
endPointThe point at which copying from the buffer will stop.
destinationStartPointThe start point to begin writing to.