MCPcopy Create free account
hub / github.com/HumbleUI/Skija / beginPage

Method beginPage

shared/java/Document.java:55–58  ·  view source on GitHub ↗

Begin a new page for the document, returning the canvas for that page. The canvas is owned by the document, and must not be used after endPage() or close() is called. @param width width of the page @param height height of the page @return Canvas for the page

(float width, float height)

Source from the content-addressed store, hash-verified

53 * @return Canvas for the page
54 */
55 public Canvas beginPage(float width, float height) {
56 Stats.onNativeCall();
57 return new Canvas(_nBeginPage(_ptr, width, height), false, this);
58 }
59
60 /**
61 * <p>Call endPage() when the content for the current page has been drawn

Callers 2

executeMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nBeginPageMethod · 0.95

Tested by 1

executeMethod · 0.64