In This Article

IDoubleBufferCanvas Interface

Provides the base requirements of a canvas to use for double-buffered painting.

public interface IDoubleBufferCanvas : IDisposable

Properties

Graphics

The Graphics object to use for all drawing operations.

Graphics Graphics { get; }

Property Value

Graphics:

A Graphics object to use for all drawing operations.

Methods

Copy(Rectangle, Point)

Copies one area of the canvas to another.

void Copy(Rectangle sourceRect, Point destLocation)
Parameter Type Description
sourceRect Rectangle

A Rectangle specifying the source bounds to copy.

destLocation Point

A Point specifying the destination location.

Flush()

Flushes the contents of the double-buffer canvas back to the original Graphics object.

void Flush()

Invert(Rectangle)

Inverts the specified bounds in the canvas.

void Invert(Rectangle bounds)
Parameter Type Description
bounds Rectangle

A Rectangle specifying the bounds to invert.

PrepareGraphics(PaintEventArgs)

Prepares the double-buffer canvas for drawing.

void PrepareGraphics(PaintEventArgs e)
Parameter Type Description
e PaintEventArgs

The PaintEventArgs passed to the Paint event.

Reset()

Resets the Graphics and canvas.

void Reset()

Inherited Members