enum wxAntialiasMode |
Anti-aliasing modes used by wxGraphicsContext::SetAntialiasMode().
enum wxCompositionMode |
Compositing is done using Porter-Duff compositions (see http://keithp.com/~keithp/porterduff/p253-porter.pdf) with wxGraphicsContext::SetCompositionMode().
The description give a short equation on how the values of a resulting pixel are calculated. R = Result, S = Source, D = Destination, colors premultiplied with alpha Ra, Sa, Da their alpha components
wxCOMPOSITION_INVALID |
Indicates invalid or unsupported composition mode. This value can't be passed to wxGraphicsContext::SetCompositionMode().
|
wxCOMPOSITION_CLEAR |
R = 0 |
wxCOMPOSITION_SOURCE |
R = S |
wxCOMPOSITION_OVER |
R = S + D*(1 - Sa) |
wxCOMPOSITION_IN |
R = S*Da |
wxCOMPOSITION_OUT |
R = S*(1 - Da) |
wxCOMPOSITION_ATOP |
R = S*Da + D*(1 - Sa) |
wxCOMPOSITION_DEST |
R = D, essentially a noop |
wxCOMPOSITION_DEST_OVER |
R = S*(1 - Da) + D |
wxCOMPOSITION_DEST_IN |
R = D*Sa |
wxCOMPOSITION_DEST_OUT |
R = D*(1 - Sa) |
wxCOMPOSITION_DEST_ATOP |
R = S*(1 - Da) + D*Sa |
wxCOMPOSITION_XOR |
R = S*(1 - Da) + D*(1 - Sa) |
wxCOMPOSITION_ADD |
R = S + D |
Interpolation quality used by wxGraphicsContext::SetInterpolationQuality().