Skip to main content

Class Buffer1bppV

Represents a 1bpp pixel buffer with vertical pixel packing 1 byte represents 8 pixels on the y-axis

Assembly: MicroGraphics.dll
View Source
public class Buffer1bppV : Buffer1bpp, IPixelBuffer, IDisposable

Inheritance: System.Object -> Meadow.Foundation.Graphics.Buffers.PixelBufferBase -> Meadow.Foundation.Graphics.Buffers.Buffer1bpp

Implements:
Meadow.Foundation.Graphics.Buffers.IPixelBuffer, System.IDisposable

Methods

GetPixelIsEnabled(int, int)

Is the pixel enabled / on for a given location

View Source
public override bool GetPixelIsEnabled(int x, int y)
Returns

System.Boolean: true if pixel is set / enabled

Parameters
TypeNameDescription
System.Int32xx location in pixels
System.Int32yy location in pixels

SetPixel(int, int, bool)

Set a pixel in the display buffer

View Source
public override void SetPixel(int x, int y, bool enabled)
Parameters
TypeNameDescription
System.Int32xx position in pixels from left
System.Int32yy position in pixels from top
System.Booleanenabledis pixel enabled (on)

Fill(int, int, int, int, Color)

Fill with a color

View Source
public override void Fill(int x, int y, int width, int height, Color color)
Parameters
TypeNameDescription
System.Int32xX start position in pixels
System.Int32yY start position in pixels
System.Int32widthWidth in pixels
System.Int32heightHeight in pixels
Meadow.ColorcolorThe fill color
Exceptions

System.ArgumentOutOfRangeException
Throws an exception if fill area is beyond the buffer bounds

InvertPixel(int, int)

Invert a pixel

View Source
public override void InvertPixel(int x, int y)
Parameters
TypeNameDescription
System.Int32xx position of pixel
System.Int32yy position of pixel

WriteBuffer(int, int, IPixelBuffer)

Write a buffer to specific location to the current buffer

View Source
public override void WriteBuffer(int x, int y, IPixelBuffer buffer)
Parameters
TypeNameDescription
System.Int32xx origin
System.Int32yy origin
Meadow.Foundation.Graphics.Buffers.IPixelBufferbufferbuffer to write

Implements