X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/133cb28b21dc61342da65dcb0addbca9a96b6fe2..c3ad4d4a455aed28178d8a22c305e1a4d6b23f23:/include/wx/graphics.h diff --git a/include/wx/graphics.h b/include/wx/graphics.h index 2768666870..0d472b5bca 100644 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -29,8 +29,10 @@ enum wxAntialiasMode enum wxInterpolationQuality { + // default interpolation + wxINTERPOLATION_DEFAULT, // no interpolation - wxINTERPOLATION_NONE, // should be 0 + wxINTERPOLATION_NONE, // fast interpolation, suited for interactivity wxINTERPOLATION_FAST, // better quality @@ -47,6 +49,7 @@ enum wxCompositionMode // classic Porter-Duff compositions // http://keithp.com/~keithp/porterduff/p253-porter.pdf + wxCOMPOSITION_INVALID = -1, /* indicates invalid/unsupported mode */ wxCOMPOSITION_CLEAR, /* R = 0 */ wxCOMPOSITION_SOURCE, /* R = S */ wxCOMPOSITION_OVER, /* R = S + D*(1 - Sa) */ @@ -62,7 +65,7 @@ enum wxCompositionMode wxCOMPOSITION_XOR, /* R = S*(1 - Da) + D*(1 - Sa) */ // mathematical compositions - wxCOMPOSITION_ADD, /* R = S + D */ + wxCOMPOSITION_ADD /* R = S + D */ }; class WXDLLIMPEXP_FWD_CORE wxWindowDC; @@ -508,10 +511,10 @@ public: // sets the antialiasing mode, returns true if it supported virtual bool SetAntialiasMode(wxAntialiasMode antialias) = 0; - // returns the current interpolation mode + // returns the current interpolation quality virtual wxInterpolationQuality GetInterpolationQuality() const { return m_interpolation; } - // sets the interpolation mode, returns true if it supported + // sets the interpolation quality, returns true if it supported virtual bool SetInterpolationQuality(wxInterpolationQuality interpolation) = 0; // returns the current compositing operator