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