Creates a new scaler instance for the given source image size and scale factor.
The source image width in pixels (0-8192). Fractional parts are discarded.
The source image height in pixels (0-8192). Fractional parts are discarded.
The scale factor. Must be 2, 3, 4, 5 or 6.
Optional scaler configuration. largeLut defaults to false.
RangeError if width, height, scale factor or largeLut is invalid.
The scale factor (2, 3, 4, 5 or 6).
The source image height in pixels.
The source image width in pixels.
The target image height in pixels.
The target image width in pixels.
Scales the given source image data and returns the target image data.
The source image data. Size (width * height * 4) must match the image size for which the scaler was initialized.
The target image data. The scaler always updates and returns the same array buffer, so when you do not immediately write the buffer to a file or canvas before scaling a different image with the same scaler you might want to copy the buffer.
Scaler instance for a specific source image size and scale factor.