Version:
interface

ImageProcessor

An ImageProcessor should provide an abstraction layer to perform
image processing via a 3rd part library

typescript
interface ImageProcessor

Methods

colorAt

colorAt(image: Image | Promise<Image>, location: Point | Promise<Point>): Promise<RGBA>

returns a pixels value

Parameters

imageImage | Promise<Image>The to query color information from
locationPoint | Promise<Point>The where to query color information

Returns

Promise<RGBA>

Was this page helpful?