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 |
destLocation | Point | A |
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 |
PrepareGraphics(PaintEventArgs)
Prepares the double-buffer canvas for drawing.
void PrepareGraphics(PaintEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | The PaintEventArgs passed to the |
Reset()
Resets the Graphics and canvas.
void Reset()