UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

19 lines (18 loc) 549 B
import type { ICanvas } from '../../../../environment/canvas/ICanvas'; import type { Texture } from './Texture'; /** * Data about the pixels of a texture. * This includes the pixel data as a Uint8ClampedArray, and the width and height of the texture. * @category rendering * @advanced */ export type GetPixelsOutput = { pixels: Uint8ClampedArray; width: number; height: number; }; /** @internal */ export interface CanvasGenerator { generateCanvas(texture: Texture): ICanvas; getPixels(texture: Texture): GetPixelsOutput; }