Skip to main content

DisplayControllerApiWrapper Class

NuGet: GHIElectronics.TinyCLR.Devices.Display
Assembly: GHIElectronics.TinyCLR.Devices.Display
Namespace: GHIElectronics.TinyCLR.Devices.Display.Provider

Concrete IDisplayControllerProvider backed by the native TinyCLR display HAL.

public sealed class DisplayControllerApiWrapper : IDisplayControllerProvider, IApiImplementation

Constructors​

DisplayControllerApiWrapper(NativeApi api)​

public DisplayControllerApiWrapper(NativeApi api)

Wraps the given native API as a provider.

Properties​

Api​

public NativeApi Api { get; }

The underlying native API descriptor.

Methods​

Dispose()​

public void Dispose()

Releases the native controller.

Enable()​

public extern void Enable()

Powers on the panel. (inherited)

Disable()​

public extern void Disable()

Powers off the panel. (inherited)

DrawBuffer(int targetX, int targetY, int sourceX, int sourceY, int width, int height, int originalWidth, byte[] data, int offset)​

public extern void DrawBuffer(int targetX, int targetY, int sourceX, int sourceY, int width, int height, int originalWidth, byte[] data, int offset)

Blits a rectangle of pixel data to the panel. (inherited)

DrawPixel(int x, int y, long color)​

public extern void DrawPixel(int x, int y, long color)

Sets a single pixel. (inherited)

DrawString(string value)​

public extern void DrawString(string value)

Renders text via the controller's built-in text mode. (inherited)

SetConfiguration(DisplayControllerSettings configuration)​

public void SetConfiguration(DisplayControllerSettings configuration)

Applies a configuration. (inherited)