
We now select between nearest neighbor and bilinear filtering when scaling images in CRC2D.drawImage(). This patch also adds CRC2D.imageSmoothingQuality but it's ignored for now as we don't have a bunch of different quality levels to map it to. Work towards #17993 (Ruffle Flash Player)
6 lines
279 B
Text
6 lines
279 B
Text
// https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesmoothing
|
|
interface mixin CanvasImageSmoothing {
|
|
// image smoothing
|
|
attribute boolean imageSmoothingEnabled; // (default true)
|
|
attribute ImageSmoothingQuality imageSmoothingQuality; // (default low)
|
|
};
|