import { type SkImage } from "https://deno.land/x/canvaseno@v1.0.2/types.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.