imageSmoothingEnabled property

bool get imageSmoothingEnabled

The imageSmoothingEnabled property of the CanvasRenderingContext2D interface, part of the Canvas API, determines whether scaled images are smoothed (true, default) or not (false). On getting the imageSmoothingEnabled property, the last value it was set to is returned.

This property is useful for games and other apps that use pixel art. When enlarging images, the default resizing algorithm will blur the pixels. Set this property to false to retain the pixels' sharpness.

Note: You can adjust the smoothing quality with the CanvasRenderingContext2D.imageSmoothingQuality property.

Implementation

external bool get imageSmoothingEnabled;
set imageSmoothingEnabled (bool value)

Implementation

external set imageSmoothingEnabled(bool value);