import { type SkImage } from "https://deno.land/x/canvas@v1.0.0/mod.ts";
See SkImage.h for more information on this class.
Methods
encodeToData(): SkData
Encodes this image's pixels to PNG and returns them. Must be built with the PNG codec.
encodeToDataWithFormat(fmt: EncodedImageFormat, quality: number): SkData
Encodes this image's pixels to the specified format and returns them. Must be built with the specified codec.
makeShader(): SkShader
Returns this image as a shader with the specified tiling.