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

Method makeImageSnapshot

shared/java/Surface.java:736–744  ·  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

734 * @see <a href="https://fiddle.skia.org/c/@Surface_makeImageSnapshot">https://fiddle.skia.org/c/@Surface_makeImageSnapshot</a>
735 */
736 @NotNull
737 public Image makeImageSnapshot() {
738 try {
739 Stats.onNativeCall();
740 return new Image(_nMakeImageSnapshot(_ptr));
741 } finally {
742 ReferenceUtil.reachabilityFence(this);
743 }
744 }
745
746 /**
747 * <p>Like the no-parameter version, this returns an image of the current surface contents.</p>

Callers 10

baseMethod · 0.80
makeSubsetMethod · 0.80
executeMethod · 0.80
drawSineMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawImageMethod · 0.80
mainMethod · 0.80

Calls 4

onNativeCallMethod · 0.95
_nMakeImageSnapshotMethod · 0.95
reachabilityFenceMethod · 0.95
_nMakeImageSnapshotRMethod · 0.95

Tested by 3

baseMethod · 0.64
makeSubsetMethod · 0.64
executeMethod · 0.64