theming-material / Class

ImagePixelExtractor

Decorators:@Injectable

No documentation has been provided.

Methods

async

fromUrl()

Extracts the pixels as argb numbers from the image at the given URL.

Presentation
async fromUrl(url: string, boundBox: [w: number, h: number]): Promise<number[]>;
Parameters
NameTypeDescription
url
string
boundBox
[w: number, h: number]

Scale the image to fit within this box.

Returns
Promise<number[]>