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
()
| 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> |