make Image Snapshot
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 also
Like the no-parameter version, this returns an image of the current surface contents.
This variant takes a rectangle specifying the subset of the surface that is of interest. These bounds will be sanitized before being used.
If bounds extends beyond the surface, it will be trimmed to just the intersection of it and the surface.
If bounds does not intersect the surface, then this returns null.
If bounds == the surface, then this is the same as calling the no-parameter variant.
Return
Image initialized with Surface contents or null