SKDocument.BeginPage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BeginPage(Single, Single) |
Begins a new page for the document, returning the canvas that will draw into the page. |
BeginPage(Single, Single, SKRect) |
Begins a new page for the document, returning the canvas that will draw into the page. |
BeginPage(Single, Single)
Begins a new page for the document, returning the canvas that will draw into the page.
public SkiaSharp.SKCanvas BeginPage (float width, float height);
Parameters
- width
- Single
The width of the page.
- height
- Single
The height of the page.
Returns
Returns a canvas for the new page.
Remarks
The document owns this canvas, and it will go out of scope when EndPage() or Close() is called, or the document is deleted.
Applies to
BeginPage(Single, Single, SKRect)
Begins a new page for the document, returning the canvas that will draw into the page.
public SkiaSharp.SKCanvas BeginPage (float width, float height, SkiaSharp.SKRect content);
Parameters
- width
- Single
The width of the page.
- height
- Single
The height of the page.
- content
- SKRect
The area for the page contents.
Returns
Returns a canvas for the new page.
Remarks
The document owns this canvas, and it will go out of scope when EndPage() or Close() is called, or the document is deleted.
Applies to
SkiaSharp