Table of Contents

Class FrameBuffer1BitPerPixel

Namespace
Iot.Device.EPaper.Buffers
Assembly
Iot.Device.ePaper.dll

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

height int

The height of the frame to manage.

width int

The width of the frame to manage.

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

height int

The height of the frame to manage.

width int

The width of the frame to manage.

buffer byte[]

The starting frame buffer.

Properties

ColorFormat

Gets the color format used across this frame buffer.

public override ColorFormat ColorFormat { get; }

Property Value

ColorFormat

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

color Color

The 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

start Point

The starting position.

width int

The width of the area.

height int

The height of the area.

color Color

The color value to use.

GetPixel(Point)

Gets the pixel at the specified position.

public override Color GetPixel(Point point)

Parameters

point Point

The position to get the pixel from.

Returns

Color

Color representing the specified pixel.

SetPixel(Point, Color)

Sets the value of the pixel at the specified position.

public override void SetPixel(Point point, Color pixelColor)

Parameters

point Point

The position to set the pixel.

pixelColor Color

The pixel color value to use.

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

buffer IFrameBuffer

The IFrameBuffer to copy from.

start Point

The start position to copy from.

end Point

The point at which copying from the buffer will stop.

destinationStart Point

The start point to begin writing to.