graphics.h File Reference

Classes

class  wxGraphicsPath
 A wxGraphicsPath is a native representation of a geometric path. More...
class  wxGraphicsObject
 This class is the superclass of native graphics objects like pens etc. More...
class  wxGraphicsContext
 A wxGraphicsContext instance is the object that is drawn upon. More...
class  wxGraphicsRenderer
 A wxGraphicsRenderer is the instance corresponding to the rendering engine used. More...
class  wxGraphicsBrush
 A wxGraphicsBrush is a native representation of a brush. More...
class  wxGraphicsFont
 A wxGraphicsFont is a native representation of a font. More...
class  wxGraphicsPen
 A wxGraphicsPen is a native representation of a pen. More...
class  wxGraphicsMatrix
 A wxGraphicsMatrix is a native representation of an affine matrix. More...

Enumerations

enum  wxAntialiasMode {
  wxANTIALIAS_NONE,
  wxANTIALIAS_DEFAULT
}
 

Anti-aliasing modes used by wxGraphicsContext::SetAntialisingMode.

More...
enum  wxCompositionMode {
  wxCOMPOSITION_CLEAR,
  wxCOMPOSITION_SOURCE,
  wxCOMPOSITION_OVER,
  wxCOMPOSITION_IN,
  wxCOMPOSITION_OUT,
  wxCOMPOSITION_ATOP,
  wxCOMPOSITION_DEST,
  wxCOMPOSITION_DEST_OVER,
  wxCOMPOSITION_DEST_IN,
  wxCOMPOSITION_DEST_OUT,
  wxCOMPOSITION_DEST_ATOP,
  wxCOMPOSITION_XOR,
  wxCOMPOSITION_ADD
}
 

Compositing is done using Porter-Duff compositions (see http://keithp.com/~keithp/porterduff/p253-porter.pdf) with wxGraphicsContext::SetCompositionMode.

More...

Enumeration Type Documentation

Anti-aliasing modes used by wxGraphicsContext::SetAntialisingMode.

Enumerator:
wxANTIALIAS_NONE 

No anti-aliasing.

wxANTIALIAS_DEFAULT 

The default anti-aliasing.

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

Enumerator:
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

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



wxWidgets logo

[ top ]