import { type SkSurface } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";
Methods
Call the given callback and save the result of that draw to a SkPicture with the same dimensions as this surface. The SkPicture will be returned.
Clean up the surface and any extra memory. [Deprecated]: In the future, calls to delete() will be sufficient to clean up the memory.
Return a canvas that is backed by this surface. Any draws to the canvas will (eventually) show up on the surface. The returned canvas is owned by the surface and does NOT need to be cleaned up by the client.
Returns the ImageInfo associated with this surface.
Returns current contents of the surface as an SkImage. This image will be optimized to be drawn to another surface of the same type. For example, if this surface is backed by the GPU, the returned SkImage will be backed by a GPU texture.
Returns a compatible SkSurface, haring the same raster or GPU properties of the original. The pixels are not shared.