From 5c72df00e5668bd146830863641c22d612cbb8aa Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Mon, 26 Oct 2015 10:18:13 +1100 Subject: [PATCH] added PolyEdge,PolyMode,Repeat,Subpixel and Filters constants --- lib/ext/render.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lib/ext/render.js b/lib/ext/render.js index eebe912..a51f458 100644 --- a/lib/ext/render.js +++ b/lib/ext/render.js @@ -673,5 +673,39 @@ exports.requireExt = function(display, callback) BlendMaximum: 0x3e }; + ext.PolyEdge = { + Sharp: 0, + Smooth: 1 + }; + + ext.PolyMode = { + Precise: 0, + Imprecise: 1 + }; + + ext.Repeat = { + None: 0, + Normal: 1, + Pad: 2, + Reflect: 3 + }; + + ext.Subpixel = { + Unknown: 0 + HorizontalRGB: 1, + HorizontalBGR: 2, + VerticalRGB : 3, + VerticalBGR : 4, + None : 5 + }; + + ext.Filters = { + Nearest: 'nearest', + Bilinear: 'bilinear', + Convolution: 'convolution', + Fast: 'fast', + Good: 'good', + Best: 'best' + }; }); }