enum Cairo::Antialias

Overview

Specifies the type of antialiasing to do when rendering text or shapes.

As it is not necessarily clear from the above what advantages a particular antialias method provides, there is also a set of hints:

These make no guarantee on how the backend will perform its rasterisation (if it even rasterises!), nor that they have any differing effect other than to enable some form of antialiasing. In the case of glyph rendering, Antialias::Fast and Antialias::Good will be mapped to Antialias::Gray, with Antialias::Best being equivalent to Antialias::Subpixel.

The interpretation of Antialias::Default is left entirely up to the backend, typically this will be similar to Antialias::Good .

Defined in:

cairo/antialias.cr

Enum Members

Default = 0

Use the default antialiasing for the subsystem and target device.

None = 1

Use a bilevel alpha mask.

Gray = 2

Perform single-color antialiasing (using shades of gray for black text on a white background, for example).

Subpixel = 3

Perform antialiasing by taking advantage of the order of subpixel elements on devices such as LCD panels.

Fast = 4

Hint that the backend should perform some antialiasing but prefer speed over quality.

Good = 5

The backend should balance quality against performance

Best = 6

Hint that the backend should render at the highest quality, sacrificing speed if necessary.

Instance Method Summary

Instance Method Detail

def best? #

[View source]
def default? #

[View source]
def fast? #

[View source]
def good? #

[View source]
def gray? #

[View source]
def none? #

[View source]
def subpixel? #

[View source]