MCPcopy Create free account
hub / github.com/JetBrains/skija / makeImageSnapshot

Method makeImageSnapshot

shared/java/Surface.java:654–661  ·  view source on GitHub ↗

Returns Image capturing Surface contents. Subsequent drawing to Surface contents are not captured. Image allocation is accounted for if Surface was created with SkBudgeted::kYes. @return Image initialized with Surface contents @see <a href="https://fiddle.skia.org/c/@Surface_makeImag

()

Source from the content-addressed store, hash-verified

652 * @see <a href="https://fiddle.skia.org/c/@Surface_makeImageSnapshot">https://fiddle.skia.org/c/@Surface_makeImageSnapshot</a>
653 */
654 public Image makeImageSnapshot() {
655 try {
656 Stats.onNativeCall();
657 return new Image(_nMakeImageSnapshot(_ptr));
658 } finally {
659 Reference.reachabilityFence(this);
660 }
661 }
662
663 /**
664 * <p>Like the no-parameter version, this returns an image of the current surface contents.</p>

Callers 8

executeMethod · 0.80
executeMethod · 0.80
drawSineMethod · 0.80
drawMethod · 0.80
drawImageMethod · 0.80
mainMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nMakeImageSnapshotMethod · 0.95
_nMakeImageSnapshotRMethod · 0.95

Tested by 2

executeMethod · 0.64
executeMethod · 0.64