Table of Contents

Method Clear

Namespace
LMKit.Graphics.Drawing
Assembly
LM-Kit.NET.dll

Clear(Color32)

Fills the entire drawing surface with the specified color, replacing all existing pixel data.

public Canvas Clear(Color32 color)

Parameters

color Color32

The color to fill the surface with.

Returns

Canvas

This Canvas instance for fluent chaining.

Examples

var canvas = new Canvas(image);
canvas.Clear(new Color32(255, 255, 255)); // white background