Method Merge
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.