xtd 0.2.0
Loading...
Searching...
No Matches

◆ smoothing_mode

Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Remarks
Dxtd::drawing::drawing_2d::smoothing_mode::dfault_value, xtd::drawing::drawing_2d::smoothing_mode::none, and xtd::drawing::drawing_2d::smoothing_mode::xtd::drawing::drawing_2d::smoothing_mode::high_speed are equivalent and specify rendering without smoothing applied.
xtd::drawing::drawing_2d::smoothing_mode::anti_alias and xtd::drawing::drawing_2d::smoothing_mode::high_quality are equivalent and specify rendering with smoothing applied.
Note
When the xtd::drawing::graphics::smoothing_mode property is specified by using the xtd::drawing::drawing_2d::smoothing_mode enumeration, it does not affect text. To set the text rendering quality, use the xtd::drawing::graphics::text_rendering_hint property and the xtd::drawing::drawing_2d::text_rendering_hint enumeration.
When the xtd::drawing::graphics::smoothing_mode property is specified by using the xtd::drawing::drawing_2d::smoothing_mode enumeration, it does not affect areas filled by a path gradient brush. Areas filled by using a xtd::drawing::drawing_2d::path_gradient_brush object are rendered the same way (aliased) regardless of the setting for the xtd::drawing::graphics::smoothing_mode property.
Enumerator
invalid 

Specifies an invalid mode.

default_value 

Specifies default mode.

high_speed 

Specifies high speed, low quality rendering.

high_quality 

Specifies high quality, low speed rendering.

none 

Specifies no pixel offset.

anti_alias 

Specifies that pixels are offset by -.5 units, both horizontally and vertically, for high speed antialiasing.