Class Canvas
Provides support for lazy initialization and rendering of dynamic bitmaps.
public class Canvas
- Inheritance
-
Canvas
- Inherited Members
Remarks
Each canvas stores a generator function, used to allocate the bitmap memory, and an immutable sequence of drawing operations to be applied to the bitmap in order to produce the final image.
Methods
Draw()
Allocates the bitmap memory and applies the sequence of operations to create a new drawing.
public IplImage Draw()
Returns
- IplImage
An IplImage object representing the result of the cumulative application of all the drawing operations to the canvas bitmap.
Merge(Canvas, Canvas)
Combines the drawing operations of two specified canvas.
public static Canvas Merge(Canvas source, Canvas other)
Parameters
sourceCanvasThe first canvas object to merge.
otherCanvasThe second canvas object to merge. The bitmap allocators for both canvas objects must be identical for drawing operations to be composable.
Returns
- Canvas
A new Canvas object representing the application of the operations of the
sourcecanvas, followed by the operations of theothercanvas.
Exceptions
- ArgumentNullException
sourceorotheris null.- ArgumentException
The bitmap allocator of the
othercanvas is not the same as the allocator for thesourcecanvas.
Operators
operator +(Canvas, Canvas)
Concatenates the drawing operations of two specified canvas.
public static Canvas operator +(Canvas left, Canvas right)