Skip to main content

@microsoft/fast-colors > QuantizeConfig > isBoxValid

QuantizeConfig.isBoxValid property

This predicate can be used to screen out undesirable colors from the final output. EG: excluding colors with a pixelCount below a min value.

Signature:
isBoxValid: ((box: PixelBox) => boolean) | null;