Additional options possible for a render context



Whether vertical-sync (VSync) is enabled



The type of render context requested


Whether a stencil buffer is enabled


Whether hardware acceleration is allowed


Whether a depth buffer is enabled


The color depth of the rendering context in bits


An optional background property to be provided to rendering, a value of null means no background color.


Whether to enable anti-aliasing, 0 is disabled, 2 enables 2x2 anti-aliasing or 4 enables 4x4 anti-aliasing.