/// <summary> /// Creates a MaskSurface having the given size and geometry with MaskMode as True. /// The geometry is filled with white color. The surface not covered by the geometry is /// transparent. /// </summary> /// <param name="size">Size of the mask</param> /// <param name="geometry">Geometry of the mask</param> /// <returns>IMaskSurface</returns> public IMaskSurface CreateMaskSurface(Size size, CanvasGeometry geometry) { // Initialize the mask IMaskSurface mask = new MaskSurface(this, size, geometry); // Render the mask mask.Redraw(); return(mask); }
/// <summary> /// Creates a MaskSurface having the given size and geometry with MaskMode as True. /// The geometry is filled with white color. The surface not covered by the geometry is /// transparent. /// </summary> /// <param name="size">Size of the mask</param> /// <param name="geometry">Geometry of the mask</param> /// <returns>IMaskSurface</returns> public IMaskSurface CreateMaskSurface(Size size, CanvasGeometry geometry) { // Initialize the mask IMaskSurface mask = new MaskSurface(this, size, geometry); // Render the mask mask.Redraw(); return mask; }