xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
Classes | Enumerations
xtd.drawing

Definition

The xtd.drawing library provides access to GDI+ basic graphics functionality.

Classes

class  xtd::drawing::bitmap
 Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes. A bitmap is an object used to work with images defined by pixel data. More...
 
class  xtd::drawing::brush
 Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths. More...
 
class  xtd::drawing::brushes
 brushes for all the standard colors. This class cannot be inherited. More...
 
class  xtd::drawing::color
 Represents an ARGB (alpha, red, green, blue) color. More...
 
class  xtd::drawing::colors
 colors for all the standard colors. This class cannot be inherited. More...
 
class  xtd::drawing::drawing2d::hatch_brush
 Defines a rectangular xtd::drawing::brush with a hatch style, a foreground color, and a background color. This class cannot be inherited. More...
 
class  xtd::drawing::drawing2d::linear_gradient_brush
 Encapsulates a xtd::drawing::brush with a linear gradient. This class cannot be inherited. More...
 
class  xtd::drawing::font
 Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited. More...
 
class  xtd::drawing::font_family
 Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited. More...
 
class  xtd::drawing::graphics
 Defines an object used to draw lines and curves. This class cannot be inherited. More...
 
class  xtd::drawing::icon
 Represents a Windows icon, which is a small bitmap image that is used to represent an object. Icons can be thought of as transparent bitmaps, although their size is determined by the system. More...
 
class  xtd::drawing::image
 An abstract base class that provides functionality for the bitmap and metafile descended classes. More...
 
class  xtd::drawing::imaging::color_palette
 Defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors. Not inheritable. More...
 
class  xtd::drawing::imaging::frame_dimension
 Provides properties that get the frame dimensions of an image. Not inheritable. More...
 
class  xtd::drawing::imaging::image_format
 Specifies the file format of the image. Not inheritable. More...
 
class  xtd::drawing::imaging::property_item
 Encapsulates a metadata property to be included in an image file. Not inheritable. More...
 
class  xtd::drawing::pen
 Defines an object used to draw lines and curves. This class cannot be inherited. More...
 
class  xtd::drawing::pens
 pens for all the standard colors. This class cannot be inherited. More...
 
class  xtd::drawing::point
 Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane. More...
 
class  xtd::drawing::point_f
 Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane. More...
 
class  xtd::drawing::rectangle
 Stores a set of four integers that represent the location and size of a rectangle. More...
 
class  xtd::drawing::rectangle_f
 Stores a set of four floating-points that represent the location and size of a rectangle. More...
 
class  xtd::drawing::size
 Stores an ordered pair of integers, which specify a height and width. More...
 
class  xtd::drawing::size_f
 Stores an ordered pair of floating-point, which specify a height and width. More...
 
class  xtd::drawing::solid_brush
 Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths. This class cannot be inherited. More...
 
class  xtd::drawing::string_format
 Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulations (such as ellipsis insertion and national digit substitution) and OpenType features. This class cannot be inherited. More...
 
class  xtd::drawing::system_brushes
 Each property of the xtd::drawing::system_brushes class is a xtd::drawing::solid_brush that is the color of a Windows display element. More...
 
class  xtd::drawing::system_colors
 Each property of the xtd::drawing::system_colors class is a xtd::drawing::color structure that is the color of a Windows display element. More...
 
class  xtd::drawing::system_fonts
 Specifies the fonts used to display text in Windows display elements. More...
 
class  xtd::drawing::system_icons
 Each property of the xtd::drawing::system_icons class is an xtd::drawing::icon object for Windows system-wide icons. This class cannot be inherited. More...
 
class  xtd::drawing::system_images
 Each property of the xtd::drawing::system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::system_pens
 Each property of the xtd::drawing::system_pens class is a xtd::drawing::xtd::drawing::pen that is the color of a Windows display element and that has a width of 1 pixel. More...
 
class  xtd::drawing::text::font_collection
 Provides a base class for installed and private font collections. More...
 
class  xtd::drawing::text::installed_font_collection
 Represents the fonts installed on the system. This class cannot be inherited. More...
 
class  xtd::drawing::text::private_font_collection
 Provides a collection of font families built from font files that are provided by the client application. More...
 
class  xtd::drawing::texture_brush
 Each property of the xtd::drawing::texture_brush class is a xtd::drawing::brush object that uses an image to fill the interior of a shape. This class cannot be inherited. More...
 

Enumerations

enum class  xtd::drawing::dash_style {
  xtd::drawing::dash_style::solid ,
  xtd::drawing::dash_style::dash ,
  xtd::drawing::dash_style::dot ,
  xtd::drawing::dash_style::dash_dot ,
  xtd::drawing::dash_style::dash_dot_dot ,
  xtd::drawing::dash_style::custom
}
 Specifies the style of dashed lines drawn with a xtd::drawing::pen object. More...
 
enum class  xtd::drawing::font_style {
  xtd::drawing::font_style::regular ,
  xtd::drawing::font_style::bold ,
  xtd::drawing::font_style::italic ,
  xtd::drawing::font_style::underline ,
  xtd::drawing::font_style::strikeout
}
 Specifies style information applied to text. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::drawing::text::generic_font_families {
  xtd::drawing::text::generic_font_families::serif ,
  xtd::drawing::text::generic_font_families::sans_serif ,
  xtd::drawing::text::generic_font_families::monospace
}
 Specifies a generic font_family object. More...
 
enum class  xtd::drawing::graphics_unit {
  xtd::drawing::graphics_unit::world ,
  xtd::drawing::graphics_unit::display ,
  xtd::drawing::graphics_unit::pixel ,
  xtd::drawing::graphics_unit::point ,
  xtd::drawing::graphics_unit::inch ,
  xtd::drawing::graphics_unit::document ,
  xtd::drawing::graphics_unit::millimeter
}
 Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  xtd::drawing::drawing2d::hatch_style {
  xtd::drawing::drawing2d::hatch_style::horizontal ,
  xtd::drawing::drawing2d::hatch_style::vertical ,
  xtd::drawing::drawing2d::hatch_style::forward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::backward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::cross ,
  xtd::drawing::drawing2d::hatch_style::diagonal_cross ,
  xtd::drawing::drawing2d::hatch_style::percent_05 ,
  xtd::drawing::drawing2d::hatch_style::percent_10 ,
  xtd::drawing::drawing2d::hatch_style::percent_20 ,
  xtd::drawing::drawing2d::hatch_style::percent_25 ,
  xtd::drawing::drawing2d::hatch_style::percent_30 ,
  xtd::drawing::drawing2d::hatch_style::percent_40 ,
  xtd::drawing::drawing2d::hatch_style::percent_50 ,
  xtd::drawing::drawing2d::hatch_style::percent_60 ,
  xtd::drawing::drawing2d::hatch_style::percent_70 ,
  xtd::drawing::drawing2d::hatch_style::percent_75 ,
  xtd::drawing::drawing2d::hatch_style::percent_80 ,
  xtd::drawing::drawing2d::hatch_style::percent_90 ,
  xtd::drawing::drawing2d::hatch_style::light_downward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::light_upward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::dark_downward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::dark_upward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::wide_downward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::wide_upward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::light_vertical ,
  xtd::drawing::drawing2d::hatch_style::light_horizontal ,
  xtd::drawing::drawing2d::hatch_style::narrow_vertical ,
  xtd::drawing::drawing2d::hatch_style::narrow_horizontal ,
  xtd::drawing::drawing2d::hatch_style::dark_vertical ,
  xtd::drawing::drawing2d::hatch_style::dark_horizontal ,
  xtd::drawing::drawing2d::hatch_style::dashed_downward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::dashed_upward_diagonal ,
  xtd::drawing::drawing2d::hatch_style::dashed_horizontal ,
  xtd::drawing::drawing2d::hatch_style::dashed_vertical ,
  xtd::drawing::drawing2d::hatch_style::small_confetti ,
  xtd::drawing::drawing2d::hatch_style::large_confetti ,
  xtd::drawing::drawing2d::hatch_style::zig_zag ,
  xtd::drawing::drawing2d::hatch_style::wave ,
  xtd::drawing::drawing2d::hatch_style::diagonal_brick ,
  xtd::drawing::drawing2d::hatch_style::horizontal_brick ,
  xtd::drawing::drawing2d::hatch_style::weave ,
  xtd::drawing::drawing2d::hatch_style::plaid ,
  xtd::drawing::drawing2d::hatch_style::divot ,
  xtd::drawing::drawing2d::hatch_style::dotted_grid ,
  xtd::drawing::drawing2d::hatch_style::dotted_diamond ,
  xtd::drawing::drawing2d::hatch_style::shingle ,
  xtd::drawing::drawing2d::hatch_style::trellis ,
  xtd::drawing::drawing2d::hatch_style::sphere ,
  xtd::drawing::drawing2d::hatch_style::small_grid ,
  xtd::drawing::drawing2d::hatch_style::small_checker_board ,
  xtd::drawing::drawing2d::hatch_style::large_checker_board ,
  xtd::drawing::drawing2d::hatch_style::outlined_diamond ,
  xtd::drawing::drawing2d::hatch_style::solid_diamond
}
 Specifies the different patterns available for xtd::drawing::drawing2d::hatch_brush objects. More...
 
enum class  xtd::drawing::hotkey_prefix {
  xtd::drawing::hotkey_prefix::none ,
  xtd::drawing::hotkey_prefix::show ,
  xtd::drawing::hotkey_prefix::hide
}
 Specifies the type of display for hot-key prefixes that relate to text. More...
 
enum class  xtd::drawing::text::hotkey_prefix {
  xtd::drawing::text::hotkey_prefix::none ,
  xtd::drawing::text::hotkey_prefix::show ,
  xtd::drawing::text::hotkey_prefix::hide
}
 Specifies the type of display for hot-key prefixes that relate to text. More...
 
enum class  xtd::drawing::imaging::image_flags {
  xtd::drawing::imaging::image_flags::none ,
  xtd::drawing::imaging::image_flags::scalable ,
  xtd::drawing::imaging::image_flags::has_alpha ,
  xtd::drawing::imaging::image_flags::has_translucent ,
  xtd::drawing::imaging::image_flags::partially_scalable ,
  xtd::drawing::imaging::image_flags::color_space_rgb ,
  xtd::drawing::imaging::image_flags::color_space_cmyk ,
  xtd::drawing::imaging::image_flags::color_space_gray ,
  xtd::drawing::imaging::image_flags::color_space_ycbcr ,
  xtd::drawing::imaging::image_flags::color_space_ycck ,
  xtd::drawing::imaging::image_flags::has_real_dpi ,
  xtd::drawing::imaging::image_flags::has_real_pixel_size ,
  xtd::drawing::imaging::image_flags::read_only ,
  xtd::drawing::imaging::image_flags::caching
}
 Specifies the attributes of the pixel data contained in an xtd::drawing::image object. The xtd::drawing:iImage::flags property returns a member of this enumeration. More...
 
enum class  xtd::drawing::known_color {
  xtd::drawing::known_color::active_border ,
  xtd::drawing::known_color::active_caption ,
  xtd::drawing::known_color::active_caption_text ,
  xtd::drawing::known_color::app_workspace ,
  xtd::drawing::known_color::control ,
  xtd::drawing::known_color::control_dark ,
  xtd::drawing::known_color::control_dark_dark ,
  xtd::drawing::known_color::control_light ,
  xtd::drawing::known_color::control_light_light ,
  xtd::drawing::known_color::control_text ,
  xtd::drawing::known_color::desktop ,
  xtd::drawing::known_color::gray_text ,
  xtd::drawing::known_color::highlight ,
  xtd::drawing::known_color::highlight_text ,
  xtd::drawing::known_color::hot_track ,
  xtd::drawing::known_color::inactive_border ,
  xtd::drawing::known_color::inactive_caption ,
  xtd::drawing::known_color::inactive_caption_text ,
  xtd::drawing::known_color::info ,
  xtd::drawing::known_color::info_text ,
  xtd::drawing::known_color::menu ,
  xtd::drawing::known_color::menu_text ,
  xtd::drawing::known_color::scroll_bar ,
  xtd::drawing::known_color::window ,
  xtd::drawing::known_color::window_frame ,
  xtd::drawing::known_color::window_text ,
  xtd::drawing::known_color::transparent ,
  xtd::drawing::known_color::alice_blue ,
  xtd::drawing::known_color::antique_white ,
  xtd::drawing::known_color::aqua ,
  xtd::drawing::known_color::aquamarine ,
  xtd::drawing::known_color::azure ,
  xtd::drawing::known_color::beige ,
  xtd::drawing::known_color::bisque ,
  xtd::drawing::known_color::black ,
  xtd::drawing::known_color::blanched_almond ,
  xtd::drawing::known_color::blue ,
  xtd::drawing::known_color::blue_violet ,
  xtd::drawing::known_color::brown ,
  xtd::drawing::known_color::burly_wood ,
  xtd::drawing::known_color::cadet_blue ,
  xtd::drawing::known_color::chartreuse ,
  xtd::drawing::known_color::chocolate ,
  xtd::drawing::known_color::coral ,
  xtd::drawing::known_color::cornflower_blue ,
  xtd::drawing::known_color::cornsilk ,
  xtd::drawing::known_color::crimson ,
  xtd::drawing::known_color::cyan ,
  xtd::drawing::known_color::dark_blue ,
  xtd::drawing::known_color::dark_cyan ,
  xtd::drawing::known_color::dark_goldenrod ,
  xtd::drawing::known_color::dark_gray ,
  xtd::drawing::known_color::dark_green ,
  xtd::drawing::known_color::dark_khaki ,
  xtd::drawing::known_color::dark_magenta ,
  xtd::drawing::known_color::dark_olive_green ,
  xtd::drawing::known_color::dark_orange ,
  xtd::drawing::known_color::dark_orchid ,
  xtd::drawing::known_color::dark_red ,
  xtd::drawing::known_color::dark_salmon ,
  xtd::drawing::known_color::dark_sea_green ,
  xtd::drawing::known_color::dark_slate_blue ,
  xtd::drawing::known_color::dark_slate_gray ,
  xtd::drawing::known_color::dark_turquoise ,
  xtd::drawing::known_color::dark_violet ,
  xtd::drawing::known_color::deep_pink ,
  xtd::drawing::known_color::deep_sky_blue ,
  xtd::drawing::known_color::dim_gray ,
  xtd::drawing::known_color::dodger_blue ,
  xtd::drawing::known_color::firebrick ,
  xtd::drawing::known_color::floral_white ,
  xtd::drawing::known_color::forest_green ,
  xtd::drawing::known_color::fuchsia ,
  xtd::drawing::known_color::gainsboro ,
  xtd::drawing::known_color::ghost_white ,
  xtd::drawing::known_color::gold ,
  xtd::drawing::known_color::goldenrod ,
  xtd::drawing::known_color::gray ,
  xtd::drawing::known_color::green ,
  xtd::drawing::known_color::green_yellow ,
  xtd::drawing::known_color::honeydew ,
  xtd::drawing::known_color::hot_pink ,
  xtd::drawing::known_color::indian_red ,
  xtd::drawing::known_color::indigo ,
  xtd::drawing::known_color::ivory ,
  xtd::drawing::known_color::khaki ,
  xtd::drawing::known_color::lavender ,
  xtd::drawing::known_color::lavender_blush ,
  xtd::drawing::known_color::lawn_green ,
  xtd::drawing::known_color::lemon_chiffon ,
  xtd::drawing::known_color::light_blue ,
  xtd::drawing::known_color::light_coral ,
  xtd::drawing::known_color::light_cyan ,
  xtd::drawing::known_color::light_goldenrod_yellow ,
  xtd::drawing::known_color::light_gray ,
  xtd::drawing::known_color::light_green ,
  xtd::drawing::known_color::light_pink ,
  xtd::drawing::known_color::light_salmon ,
  xtd::drawing::known_color::light_sea_green ,
  xtd::drawing::known_color::light_sky_blue ,
  xtd::drawing::known_color::light_slate_gray ,
  xtd::drawing::known_color::light_steel_blue ,
  xtd::drawing::known_color::light_yellow ,
  xtd::drawing::known_color::lime ,
  xtd::drawing::known_color::lime_green ,
  xtd::drawing::known_color::linen ,
  xtd::drawing::known_color::magenta ,
  xtd::drawing::known_color::maroon ,
  xtd::drawing::known_color::medium_aquamarine ,
  xtd::drawing::known_color::medium_blue ,
  xtd::drawing::known_color::medium_orchid ,
  xtd::drawing::known_color::medium_purple ,
  xtd::drawing::known_color::medium_sea_green ,
  xtd::drawing::known_color::medium_slate_blue ,
  xtd::drawing::known_color::medium_spring_green ,
  xtd::drawing::known_color::medium_turquoise ,
  xtd::drawing::known_color::medium_violet_red ,
  xtd::drawing::known_color::midnight_blue ,
  xtd::drawing::known_color::mint_cream ,
  xtd::drawing::known_color::misty_rose ,
  xtd::drawing::known_color::moccasin ,
  xtd::drawing::known_color::navajo_white ,
  xtd::drawing::known_color::navy ,
  xtd::drawing::known_color::old_lace ,
  xtd::drawing::known_color::olive ,
  xtd::drawing::known_color::olive_drab ,
  xtd::drawing::known_color::orange ,
  xtd::drawing::known_color::orange_red ,
  xtd::drawing::known_color::orchid ,
  xtd::drawing::known_color::pale_goldenrod ,
  xtd::drawing::known_color::pale_green ,
  xtd::drawing::known_color::pale_turquoise ,
  xtd::drawing::known_color::pale_violet_red ,
  xtd::drawing::known_color::papaya_whip ,
  xtd::drawing::known_color::peach_puff ,
  xtd::drawing::known_color::peru ,
  xtd::drawing::known_color::pink ,
  xtd::drawing::known_color::plum ,
  xtd::drawing::known_color::powder_blue ,
  xtd::drawing::known_color::purple ,
  xtd::drawing::known_color::rebecca_purple ,
  xtd::drawing::known_color::red ,
  xtd::drawing::known_color::rosy_brown ,
  xtd::drawing::known_color::royal_blue ,
  xtd::drawing::known_color::saddle_brown ,
  xtd::drawing::known_color::salmon ,
  xtd::drawing::known_color::sandy_brown ,
  xtd::drawing::known_color::sea_green ,
  xtd::drawing::known_color::sea_shell ,
  xtd::drawing::known_color::sienna ,
  xtd::drawing::known_color::silver ,
  xtd::drawing::known_color::sky_blue ,
  xtd::drawing::known_color::slate_blue ,
  xtd::drawing::known_color::slate_gray ,
  xtd::drawing::known_color::snow ,
  xtd::drawing::known_color::spring_green ,
  xtd::drawing::known_color::steel_blue ,
  xtd::drawing::known_color::tan ,
  xtd::drawing::known_color::teal ,
  xtd::drawing::known_color::thistle ,
  xtd::drawing::known_color::tomato ,
  xtd::drawing::known_color::turquoise ,
  xtd::drawing::known_color::violet ,
  xtd::drawing::known_color::wheat ,
  xtd::drawing::known_color::white ,
  xtd::drawing::known_color::white_smoke ,
  xtd::drawing::known_color::yellow ,
  xtd::drawing::known_color::yellow_green ,
  xtd::drawing::known_color::button_face ,
  xtd::drawing::known_color::button_highlight ,
  xtd::drawing::known_color::button_shadow ,
  xtd::drawing::known_color::gradient_active_caption ,
  xtd::drawing::known_color::gradient_inactive_caption ,
  xtd::drawing::known_color::menu_bar ,
  xtd::drawing::known_color::menu_highlight ,
  xtd::drawing::known_color::accent ,
  xtd::drawing::known_color::accent_text ,
  xtd::drawing::known_color::text_box ,
  xtd::drawing::known_color::text_box_text
}
 Specifies the known system colors. More...
 
enum class  xtd::drawing::drawing2d::linear_gradient_mode {
  xtd::drawing::drawing2d::linear_gradient_mode::horizontal ,
  xtd::drawing::drawing2d::linear_gradient_mode::vertical ,
  xtd::drawing::drawing2d::linear_gradient_mode::forward_diagonal ,
  xtd::drawing::drawing2d::linear_gradient_mode::backward_diagonal
}
 Specifies the direction of a linear gradient. More...
 
enum class  xtd::drawing::drawing2d::pen_alignment {
  xtd::drawing::drawing2d::pen_alignment::center ,
  xtd::drawing::drawing2d::pen_alignment::inset ,
  xtd::drawing::drawing2d::pen_alignment::outset ,
  xtd::drawing::drawing2d::pen_alignment::left ,
  xtd::drawing::drawing2d::pen_alignment::right
}
 SSpecifies the alignment of a xtd::drawing::pen object in relation to the theoretical, zero-width line. More...
 
enum class  xtd::drawing::drawing2d::pen_type {
  xtd::drawing::drawing2d::pen_type::solid_color ,
  xtd::drawing::drawing2d::pen_type::hatch_fill ,
  xtd::drawing::drawing2d::pen_type::texture_fill ,
  xtd::drawing::drawing2d::pen_type::path_gradient ,
  xtd::drawing::drawing2d::pen_type::linear_gradient
}
 Specifies the type of fill a xtd::drawing::pen object uses to fill lines. More...
 
enum class  xtd::drawing::imaging::pixel_format {
  xtd::drawing::imaging::pixel_format::undefined ,
  xtd::drawing::imaging::pixel_format::dont_care ,
  xtd::drawing::imaging::pixel_format::max ,
  xtd::drawing::imaging::pixel_format::indexed ,
  xtd::drawing::imaging::pixel_format::gdi ,
  xtd::drawing::imaging::pixel_format::format16bpp_rgb555 ,
  xtd::drawing::imaging::pixel_format::format16bpp_rgb565 ,
  xtd::drawing::imaging::pixel_format::format24bpp_rgb ,
  xtd::drawing::imaging::pixel_format::format32bpp_rgb ,
  xtd::drawing::imaging::pixel_format::format1bpp_indexed ,
  xtd::drawing::imaging::pixel_format::format4bpp_indexed ,
  xtd::drawing::imaging::pixel_format::format8bpp_indexed ,
  xtd::drawing::imaging::pixel_format::alpha ,
  xtd::drawing::imaging::pixel_format::format16bpp_argb1555 ,
  xtd::drawing::imaging::pixel_format::palpha ,
  xtd::drawing::imaging::pixel_format::format32bpp_pargb ,
  xtd::drawing::imaging::pixel_format::extended ,
  xtd::drawing::imaging::pixel_format::format16bpp_gray_scale ,
  xtd::drawing::imaging::pixel_format::format48bpp_rgb ,
  xtd::drawing::imaging::pixel_format::format64bpp_pargb ,
  xtd::drawing::imaging::pixel_format::canonical ,
  xtd::drawing::imaging::pixel_format::format32bpp_argb ,
  xtd::drawing::imaging::pixel_format::format64bpp_argb
}
 Specifies the format of the color data for each pixel in the image. More...
 
enum class  xtd::drawing::string_alignment {
  xtd::drawing::string_alignment::near ,
  xtd::drawing::string_alignment::center ,
  xtd::drawing::string_alignment::far
}
 Specifies the alignment of a text string relative to its layout rectangle. More...
 
enum class  xtd::drawing::string_format_flags {
  xtd::drawing::string_format_flags::direction_right_to_left ,
  xtd::drawing::string_format_flags::direction_vertical ,
  xtd::drawing::string_format_flags::fit_black_box ,
  xtd::drawing::string_format_flags::display_format_control ,
  xtd::drawing::string_format_flags::no_font_fallback ,
  xtd::drawing::string_format_flags::measure_trailing_spaces ,
  xtd::drawing::string_format_flags::no_wrap ,
  xtd::drawing::string_format_flags::line_limit ,
  xtd::drawing::string_format_flags::no_clip
}
 Specifies the display and layout information for text strings. This enumeration allows a bitwise combination of its member values. More...
 
enum class  xtd::drawing::string_trimming {
  xtd::drawing::string_trimming::none ,
  xtd::drawing::string_trimming::character ,
  xtd::drawing::string_trimming::word ,
  xtd::drawing::string_trimming::ellipsis_character ,
  xtd::drawing::string_trimming::ellipsis_word ,
  xtd::drawing::string_trimming::ellipsis_path
}
 Specifies how to trim characters from a string that does not completely fit into a layout shape. More...
 
enum class  xtd::drawing::text::text_rendering_hint {
  xtd::drawing::text::text_rendering_hint::system_default ,
  xtd::drawing::text::text_rendering_hint::single_bit_per_pixel_grid_fit ,
  xtd::drawing::text::text_rendering_hint::single_bit_per_pixel ,
  xtd::drawing::text::text_rendering_hint::anti_alias_grid_fit ,
  xtd::drawing::text::text_rendering_hint::anti_alias ,
  xtd::drawing::text::text_rendering_hint::clear_type_grid_fit
}
 Specifies the quality of text rendering. More...
 

Enumeration Type Documentation

◆ dash_style

enum class xtd::drawing::dash_style
strong

#include <xtd.drawing/include/xtd/drawing/dash_style.h>

Specifies the style of dashed lines drawn with a xtd::drawing::pen object.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
To define a custom dash_style, set the dash_pattern property of the xtd::drawing::pen.
Enumerator
solid 

Specifies a solid line.

dash 

Specifies a line consisting of dashes.

dot 

Specifies a line consisting of dots.

dash_dot 

Specifies a line consisting of a repeating pattern of dash-dot.

dash_dot_dot 

Specifies a line consisting of a repeating pattern of dash-dot-dot.

custom 

Specifies a user-defined custom dash style.

◆ font_style

enum class xtd::drawing::font_style
strong

#include <xtd.drawing/include/xtd/drawing/font_style.h>

Specifies style information applied to text. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd::drawing
Library
xtd.drawing
Enumerator
regular 

Normal text.

bold 

Bold text.

italic 

Italic text.

underline 

Underline text.

strikeout 

Text with a line through the middle.

◆ generic_font_families

#include <xtd.drawing/include/xtd/drawing/text/generic_font_families.h>

Specifies a generic font_family object.

Namespace
xtd::drawing::text
Library
xtd.drawing
Enumerator
serif 

A generic Serif font_family object.

sans_serif 

A generic Sans Serif font_family object.

monospace 

A generic Monospace font_family object.

◆ graphics_unit

enum class xtd::drawing::graphics_unit
strong

#include <xtd.drawing/include/xtd/drawing/graphics_unit.h>

Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd::drawing
Library
xtd.drawing
Enumerator
world 

Specifies the world coordinate system unit as the unit of measure.

display 

Specifies 1/75 inch as the unit of measure.

pixel 

Specifies a device pixel as the unit of measure.

point 

Specifies a printer's point (1/72 inch) as the unit of measure.

inch 

Specifies the inch as the unit of measure.

document 

Specifies the document unit (1/300 inch) as the unit of measure.

millimeter 

Specifies the millimeter as the unit of measure.

◆ hatch_style

#include <xtd.drawing/include/xtd/drawing/drawing2d/hatch_style.h>

Specifies the different patterns available for xtd::drawing::drawing2d::hatch_brush objects.

Namespace
xtd::drawing::drawing2d
Library
xtd.drawing
Enumerator
horizontal 

A pattern of horizontal lines.

vertical 

A pattern of vertical lines.

forward_diagonal 

A pattern of lines on a diagonal from upper left to lower right.

backward_diagonal 

A pattern of lines on a diagonal from upper right to lower left.

cross 

Specifies horizontal and vertical lines that cross.

diagonal_cross 

A pattern of crisscross diagonal lines.

percent_05 

Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:95.

percent_10 

Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:90.

percent_20 

Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:80.

percent_25 

Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:75.

percent_30 

Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:70.

percent_40 

Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:60.

percent_50 

Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:50.

percent_60 

Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:40.

percent_70 

Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:30.

percent_75 

Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:25.

percent_80 

Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:20.

percent_90 

Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:10.

light_downward_diagonal 

Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than forward_diagonal, but are not antialiased.

light_upward_diagonal 

Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than backward_diagonal, but they are not antialiased.

dark_downward_diagonal 

Specifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than, and are twice the width of forward_diagonal. This hatch pattern is not antialiased.

dark_upward_diagonal 

Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than backward_diagonal, and are twice its width, but the lines are not antialiased.

wide_downward_diagonal 

Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as hatch style forward_diagonal, and are triple its width, but are not antialiased.

wide_upward_diagonal 

Specifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as hatch style backward_diagonal, and are triple its width, but are not antialiased.

light_vertical 

Specifies vertical lines that are spaced 50 percent closer together than vertical.

light_horizontal 

Specifies horizontal lines that are spaced 50 percent closer together than horizontal.

narrow_vertical 

Specifies vertical lines that are spaced 75 percent closer together than hatch style vertical (or 25 percent closer together than light_vertical).

narrow_horizontal 

Specifies horizontal lines that are spaced 75 percent closer together than hatch style horizontal (or 25 percent closer together than light_horizontal).

dark_vertical 

Specifies vertical lines that are spaced 50 percent closer together than vertical and are twice its width.

dark_horizontal 

Specifies horizontal lines that are spaced 50 percent closer together than horizontal and are twice the width of horizontal.

dashed_downward_diagonal 

Specifies dashed diagonal lines, that slant to the right from top points to bottom points.

dashed_upward_diagonal 

Specifies dashed diagonal lines, that slant to the left from top points to bottom points.

dashed_horizontal 

Specifies dashed horizontal lines.

dashed_vertical 

Specifies dashed vertical lines.

small_confetti 

Specifies a hatch that has the appearance of confetti.

large_confetti 

Specifies a hatch that has the appearance of confetti, and is composed of larger pieces than small_confetti.

zig_zag 

Specifies horizontal lines that are composed of zigzags.

wave 

Specifies horizontal lines that are composed of tildes.

diagonal_brick 

Specifies a hatch that has the appearance of layered bricks that slant to the left from top points to bottom points.

horizontal_brick 

Specifies a hatch that has the appearance of horizontally layered bricks.

weave 

Specifies a hatch that has the appearance of a woven material.

plaid 

Specifies a hatch that has the appearance of a plaid material.

divot 

Specifies a hatch that has the appearance of divots.

dotted_grid 

Specifies horizontal and vertical lines, each of which is composed of dots, that cross.

dotted_diamond 

Specifies forward diagonal and backward diagonal lines, each of which is composed of dots, that cross.

shingle 

Specifies a hatch that has the appearance of diagonally layered shingles that slant to the right from top points to bottom points.

trellis 

Specifies a hatch that has the appearance of a trellis.

sphere 

Specifies a hatch that has the appearance of spheres laid adjacent to one another.

small_grid 

Specifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hatch style cross.

small_checker_board 

Specifies a hatch that has the appearance of a checkerboard.

large_checker_board 

Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of small_checker_board.

outlined_diamond 

Specifies forward diagonal and backward diagonal lines that cross but are not antialiased.

solid_diamond 

Specifies a hatch that has the appearance of a checkerboard placed diagonally.

◆ hotkey_prefix [1/2]

enum class xtd::drawing::hotkey_prefix
strong

#include <xtd.drawing/include/xtd/drawing/hotkey_prefix.h>

Specifies the type of display for hot-key prefixes that relate to text.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
A hot-key prefix allows you to use a keyboard combination (usually CTRL+HotKey or ALT+HotKey) to access functionality represented by text displayed on the screen.
Enumerator
none 

No hot-key prefix.

show 

Display the hot-key prefix.

hide 

Do not display the hot-key prefix.

◆ hotkey_prefix [2/2]

#include <xtd.drawing/include/xtd/drawing/text/hotkey_prefix.h>

Specifies the type of display for hot-key prefixes that relate to text.

Namespace
xtd::drawing::text
Library
xtd.drawing
Remarks
A hot-key prefix allows you to use a keyboard combination (usually CTRL+HotKey or ALT+HotKey) to access functionality represented by text displayed on the screen.
Enumerator
none 

No hot-key prefix.

show 

Display the hot-key prefix.

hide 

Do not display the hot-key prefix.

◆ image_flags

#include <xtd.drawing/include/xtd/drawing/imaging/image_flags.h>

Specifies the attributes of the pixel data contained in an xtd::drawing::image object. The xtd::drawing:iImage::flags property returns a member of this enumeration.

Namespace
xtd::drawing::imaging
Library
xtd.drawing
Enumerator
none 

There is no format information.

scalable 

The pixel data is scalable.

has_alpha 

The pixel data contains alpha information.

has_translucent 

Specifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque).

partially_scalable 

The pixel data is partially scalable, but there are some limitations.

color_space_rgb 

The pixel data uses an RGB color space.

color_space_cmyk 

The pixel data uses a CMYK color space.

color_space_gray 

The pixel data is grayscale.

color_space_ycbcr 

Specifies that the image is stored using a YCBCR color space.

color_space_ycck 

Specifies that the image is stored using a YCCK color space.

has_real_dpi 

Specifies that dots per inch information is stored in the image.

has_real_pixel_size 

Specifies that the pixel size is stored in the image.

read_only 

The pixel data is read-only.

caching 

The pixel data can be cached for faster access.

◆ known_color

enum class xtd::drawing::known_color
strong

#include <xtd.drawing/include/xtd/drawing/known_color.h>

Specifies the known system colors.

Namespace
xtd::drawing
Library
xtd.drawing
See also
xtd::drawing::color
Enumerator
active_border 

The system-defined color of the active window's border.

active_caption 

The system-defined color of the background of the active window's title bar.

active_caption_text 

The system-defined color of the text in the active window's title bar.

app_workspace 

The system-defined color of the application workspace. The application workspace is the area in a multiple-document view that is not being occupied by documents.

control 

The system-defined face color of a 3-D element.

control_dark 

The system-defined shadow color of a 3-D element. The shadow color is applied to parts of a 3-D element that face away from the light source.

control_dark_dark 

The system-defined color that is the dark shadow color of a 3-D element. The dark shadow color is applied to the parts of a 3-D element that are the darkest color.

control_light 

The system-defined color that is the light color of a 3-D element. The light color is applied to parts of a 3-D element that face the light source.

control_light_light 

The system-defined highlight color of a 3-D element. The highlight color is applied to the parts of a 3-D element that are the lightest color.

control_text 

The system-defined color of text in a 3-D element.

desktop 

The system-defined color of the desktop.

gray_text 

The system-defined color of dimmed text. Items in a list that are disabled are displayed in dimmed text.

highlight 

The system-defined color of the background of selected items. This includes selected menu items as well as selected text.

highlight_text 

The system-defined color of the text of selected items.

hot_track 

The system-defined color used to designate a hot-tracked item. Single-clicking a hot-tracked item executes the item.

inactive_border 

The system-defined color of an inactive window's border.

inactive_caption 

The system-defined color of the background of an inactive window's title bar.

inactive_caption_text 

The system-defined color of the text in an inactive window's title bar.

info 

The system-defined color of the background of a ToolTip.

info_text 

The system-defined color of the text of a ToolTip.

menu 

The system-defined color of a menu's background.

menu_text 

The system-defined color of a menu's text.

scroll_bar 

The system-defined color of the background of a scroll bar.

window 

The system-defined color of the background in the client area of a window.

window_frame 

The system-defined color of a window frame.

window_text 

The system-defined color of the text in the client area of a window.

transparent 

A system-defined color.

alice_blue 

A system-defined color.

antique_white 

A system-defined color.

aqua 

A system-defined color.

aquamarine 

A system-defined color.

azure 

A system-defined color.

beige 

A system-defined color.

bisque 

A system-defined color.

black 

A system-defined color.

blanched_almond 

A system-defined color.

blue 

A system-defined color.

blue_violet 

A system-defined color.

brown 

A system-defined color.

burly_wood 

A system-defined color.

cadet_blue 

A system-defined color.

chartreuse 

A system-defined color.

chocolate 

A system-defined color.

coral 

A system-defined color.

cornflower_blue 

A system-defined color.

cornsilk 

A system-defined color.

crimson 

A system-defined color.

cyan 

A system-defined color.

dark_blue 

A system-defined color.

dark_cyan 

A system-defined color.

dark_goldenrod 

A system-defined color.

dark_gray 

A system-defined color.

dark_green 

A system-defined color.

dark_khaki 

A system-defined color.

dark_magenta 

A system-defined color.

dark_olive_green 

A system-defined color.

dark_orange 

A system-defined color.

dark_orchid 

A system-defined color.

dark_red 

A system-defined color.

dark_salmon 

A system-defined color.

dark_sea_green 

A system-defined color.

dark_slate_blue 

A system-defined color.

dark_slate_gray 

A system-defined color.

dark_turquoise 

A system-defined color.

dark_violet 

A system-defined color.

deep_pink 

A system-defined color.

deep_sky_blue 

A system-defined color.

dim_gray 

A system-defined color.

dodger_blue 

A system-defined color.

firebrick 

A system-defined color.

floral_white 

A system-defined color.

forest_green 

A system-defined color.

fuchsia 

A system-defined color.

gainsboro 

A system-defined color.

ghost_white 

A system-defined color.

gold 

A system-defined color.

goldenrod 

A system-defined color.

gray 

A system-defined color.

green 

A system-defined color.

green_yellow 

A system-defined color.

honeydew 

A system-defined color.

hot_pink 

A system-defined color.

indian_red 

A system-defined color.

indigo 

A system-defined color.

ivory 

A system-defined color.

khaki 

A system-defined color.

lavender 

A system-defined color.

lavender_blush 

A system-defined color.

lawn_green 

A system-defined color.

lemon_chiffon 

A system-defined color.

light_blue 

A system-defined color.

light_coral 

A system-defined color.

light_cyan 

A system-defined color.

light_goldenrod_yellow 

A system-defined color.

light_gray 

A system-defined color.

light_green 

A system-defined color.

light_pink 

A system-defined color.

light_salmon 

A system-defined color.

light_sea_green 

A system-defined color.

light_sky_blue 

A system-defined color.

light_slate_gray 

A system-defined color.

light_steel_blue 

A system-defined color.

light_yellow 

A system-defined color.

lime 

A system-defined color.

lime_green 

A system-defined color.

linen 

A system-defined color.

magenta 

A system-defined color.

maroon 

A system-defined color.

medium_aquamarine 

A system-defined color.

medium_blue 

A system-defined color.

medium_orchid 

A system-defined color.

medium_purple 

A system-defined color.

medium_sea_green 

A system-defined color.

medium_slate_blue 

A system-defined color.

medium_spring_green 

A system-defined color.

medium_turquoise 

A system-defined color.

medium_violet_red 

A system-defined color.

midnight_blue 

A system-defined color.

mint_cream 

A system-defined color.

misty_rose 

A system-defined color.

moccasin 

A system-defined color.

navajo_white 

A system-defined color.

navy 

A system-defined color.

old_lace 

A system-defined color.

olive 

A system-defined color.

olive_drab 

A system-defined color.

orange 

A system-defined color.

orange_red 

A system-defined color.

orchid 

A system-defined color.

pale_goldenrod 

A system-defined color.

pale_green 

A system-defined color.

pale_turquoise 

A system-defined color.

pale_violet_red 

A system-defined color.

papaya_whip 

A system-defined color.

peach_puff 

A system-defined color.

peru 

A system-defined color.

pink 

A system-defined color.

plum 

A system-defined color.

powder_blue 

A system-defined color.

purple 

A system-defined color.

rebecca_purple 

A system-defined color.

red 

A system-defined color.

rosy_brown 

A system-defined color.

royal_blue 

A system-defined color.

saddle_brown 

A system-defined color.

salmon 

A system-defined color.

sandy_brown 

A system-defined color.

sea_green 

A system-defined color.

sea_shell 

A system-defined color.

sienna 

A system-defined color.

silver 

A system-defined color.

sky_blue 

A system-defined color.

slate_blue 

A system-defined color.

slate_gray 

A system-defined color.

snow 

A system-defined color.

spring_green 

A system-defined color.

steel_blue 

A system-defined color.

tan 

A system-defined color.

teal 

A system-defined color.

thistle 

A system-defined color.

tomato 

A system-defined color.

turquoise 

A system-defined color.

violet 

A system-defined color.

wheat 

A system-defined color.

white 

A system-defined color.

white_smoke 

A system-defined color.

yellow 

A system-defined color.

yellow_green 

A system-defined color.

button_face 

The system-defined face color of a 3-D element.

button_highlight 

The system-defined color that is the highlight color of a 3-D element. This color is applied to parts of a 3-D element that face the light source.

button_shadow 

The system-defined color that is the shadow color of a 3-D element. This color is applied to parts of a 3-D element that face away from the light source.

gradient_active_caption 

The system-defined color of the lightest color in the color gradient of an active window's title bar.

gradient_inactive_caption 

The system-defined color of the lightest color in the color gradient of an inactive window's title bar.

menu_bar 

The system-defined color of the background of a menu bar.

menu_highlight 

The system-defined color used to highlight menu items when the menu appears as a flat menu.

accent 

The system-defined color of the accent color (macos specific. On other platform is same as menu_highlight).

accent_text 

The system-defined color of the accent text color (macos specific. On other platform is same as highlight_text).

text_box 

The system-defined color of the accent color (macos specific. On other platform is same as window).

text_box_text 

The system-defined color of the accent text color (macos specific. On other platform is same as window_text).

◆ linear_gradient_mode

#include <xtd.drawing/include/xtd/drawing/drawing2d/linear_gradient_mode.h>

Specifies the direction of a linear gradient.

Namespace
xtd::drawing::drawing2d
Library
xtd.drawing
Enumerator
horizontal 

Specifies a gradient from left to right.

vertical 

Specifies a gradient from top to bottom.

forward_diagonal 

Specifies a gradient from upper left to lower right.

backward_diagonal 

Specifies a gradient from upper right to lower left.

◆ pen_alignment

#include <xtd.drawing/include/xtd/drawing/drawing2d/pen_alignment.h>

SSpecifies the alignment of a xtd::drawing::pen object in relation to the theoretical, zero-width line.

Namespace
xtd::drawing::drawing2d
Library
xtd.drawing
Remarks
A xtd::drawing::pen object has width. The center point of this pen width is aligned relative to the line being drawn depending on the alignment value. A xtd::drawing::pen object can be positioned to draw inside of a line or centered over the line.
See also
xtd::drawing::pen
Enumerator
center 

Specifies that the xtd::drawing::pen object is centered over the theoretical line.

inset 

Specifies that the xtd::drawing::pen is positioned on the inside of the theoretical line.

outset 

Specifies the xtd::drawing::pen is positioned on the outside of the theoretical line.

left 

Specifies the xtd::drawing::pen is positioned to the left of the theoretical line.

right 

Specifies the xtd::drawing::pen is positioned to the right of the theoretical line.

◆ pen_type

#include <xtd.drawing/include/xtd/drawing/drawing2d/pen_type.h>

Specifies the type of fill a xtd::drawing::pen object uses to fill lines.

Namespace
xtd::drawing::drawing2d
Library
xtd.drawing
Remarks
The pen type is determined by the brush property of the xtd::drawing::pen object.
Enumerator
solid_color 

Specifies a solid fill.

hatch_fill 

Specifies a hatch fill.

texture_fill 

Specifies a bitmap texture fill.

path_gradient 

Specifies a path gradient fill.

linear_gradient 

Specifies a linear gradient fill.

◆ pixel_format

#include <xtd.drawing/include/xtd/drawing/imaging/pixel_format.h>

Specifies the format of the color data for each pixel in the image.

Namespace
xtd::drawing::imaging
Library
xtd.drawing
Remarks
The pixel format defines the number of bits of memory associated with one pixel of data. The format also defines the order of the color components within a single pixel of data.
PixelFormat48bppRGB, PixelFormat64bppARGB, and PixelFormat64bppPARGB use 16 bits per color component (channel). GDI+ version 1.0 and 1.1 can read 16-bits-per-channel images, but such images are converted to an 8-bits-per-channel format for processing, displaying, and saving. Each 16-bit color channel can hold a value in the range 0 through 2^13.
Some of the pixel formats contain premultiplied color values. Premultiplied means that the color values have already been multiplied by an alpha value.
Enumerator
undefined 

The pixel format is undefined.

dont_care 

No pixel format is specified.

max 

The maximum value for this enumeration.

indexed 

The pixel data contains color-indexed values, which means the values are an index to colors in the system color table, as opposed to individual color values.

gdi 

The pixel data contains GDI colors.

format16bpp_rgb555 

Specifies that the format is 16 bits per pixel; 5 bits each are used for the red, green, and blue components. The remaining bit is not used.

format16bpp_rgb565 

Specifies that the format is 16 bits per pixel; 5 bits are used for the red component, 6 bits are used for the green component, and 5 bits are used for the blue component.

format24bpp_rgb 

Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green, and blue components.

format32bpp_rgb 

Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green, and blue components. The remaining 8 bits are not used.

format1bpp_indexed 

Specifies that the pixel format is 1 bit per pixel and that it uses indexed color. The color table therefore has two colors in it.

format4bpp_indexed 

Specifies that the format is 4 bits per pixel, indexed.

format8bpp_indexed 

Specifies that the format is 8 bits per pixel, indexed. The color table therefore has 256 colors in it.

alpha 

The pixel data contains alpha values that are not premultiplied.

format16bpp_argb1555 

The pixel format is 16 bits per pixel. The color information specifies 32,768 shades of color, of which 5 bits are red, 5 bits are green, 5 bits are blue, and 1 bit is alpha.

palpha 

The pixel format contains premultiplied alpha values.

format32bpp_pargb 

Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components. The red, green, and blue components are premultiplied, according to the alpha component.

extended 

Reserved.

format16bpp_gray_scale 

The pixel format is 16 bits per pixel. The color information specifies 65536 shades of gray.

format48bpp_rgb 

Specifies that the format is 48 bits per pixel; 16 bits each are used for the red, green, and blue components.

format64bpp_pargb 

Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components. The red, green, and blue components are premultiplied according to the alpha component.

canonical 

The default pixel format of 32 bits per pixel. The format specifies 24-bit color depth and an 8-bit alpha channel.

format32bpp_argb 

Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components.

format64bpp_argb 

Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components.

◆ string_alignment

enum class xtd::drawing::string_alignment
strong

#include <xtd.drawing/include/xtd/drawing/string_alignment.h>

Specifies the alignment of a text string relative to its layout rectangle.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
When used with the line_alignment property, this enumeration sets the vertical alignment for a drawn string. When used with the alignment property, this enumeration sets the horizontal alignment.
Enumerator
near 

Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right.

center 

Specifies that text is aligned in the center of the layout rectangle.

far 

Specifies that text is aligned far from the origin position of the layout rectangle. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left.

◆ string_format_flags

#include <xtd.drawing/include/xtd/drawing/string_format_flags.h>

Specifies the display and layout information for text strings. This enumeration allows a bitwise combination of its member values.

Namespace
xtd::drawing
Library
xtd.drawing
Enumerator
direction_right_to_left 

Text is displayed from right to left. text.

direction_vertical 

Text is vertically aligned.

fit_black_box 

Parts of characters are allowed to overhang the string's layout rectangle. By default, characters are repositioned to avoid any overhang.

display_format_control 

Control characters such as the left-to-right mark are shown in the output with a representative glyph.

no_font_fallback 

Fallback to alternate fonts for characters not supported in the requested font is disabled. Any missing characters are displayed with the fonts missing glyph, usually an open square.

measure_trailing_spaces 

Includes the trailing space at the end of each line. By default the boundary rectangle returned by the MeasureString method excludes the space at the end of each line. Set this flag to include that space in measurement.

no_wrap 

Text wrapping between lines when formatting within a rectangle is disabled. This flag is implied when a point is passed instead of a rectangle, or when the specified rectangle has a zero line length.

line_limit 

Only entire lines are laid out in the formatting rectangle. By default layout continues until the end of the text, or until no more lines are visible as a result of clipping, whichever comes first. Note that the default settings allow the last line to be partially obscured by a formatting rectangle that is not a whole multiple of the line height. To ensure that only whole lines are seen, specify this value and be careful to provide a formatting rectangle at least as tall as the height of one line.

no_clip 

Overhanging parts of glyphs, and unwrapped text reaching outside the formatting rectangle are allowed to show. By default all text and glyph parts reaching outside the formatting rectangle are clipped.

◆ string_trimming

enum class xtd::drawing::string_trimming
strong

#include <xtd.drawing/include/xtd/drawing/string_trimming.h>

Specifies how to trim characters from a string that does not completely fit into a layout shape.

Namespace
xtd::drawing
Library
xtd.drawing
Enumerator
none 

Specifies no trimming.

character 

Specifies that the text is trimmed to the nearest character.

word 

Specifies that text is trimmed to the nearest word.

ellipsis_character 

Specifies that the text is trimmed to the nearest character, and an ellipsis is inserted at the end of a trimmed line.

ellipsis_word 

Specifies that text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimmed line.

ellipsis_path 

The center is removed from trimmed lines and replaced by an ellipsis. The algorithm keeps as much of the last slash-delimited segment of the line as possible.

◆ text_rendering_hint

#include <xtd.drawing/include/xtd/drawing/text/text_rendering_hint.h>

Specifies the quality of text rendering.

Namespace
xtd::drawing::text
Library
xtd.drawing
Remarks
The quality ranges from text (fastest performance, but lowest quality) to antialiased text (better quality, but slower performance) to ClearType text (best quality on an LCD display).
Enumerator
system_default 

Each character is drawn using its glyph bitmap, with the system default rendering hint. The text will be drawn using whatever font-smoothing settings the user has selected for the system.

single_bit_per_pixel_grid_fit 

Each character is drawn using its glyph bitmap. Hinting is used to improve character appearance on stems and curvature.

single_bit_per_pixel 

Each character is drawn using its glyph bitmap. Hinting is not used.

anti_alias_grid_fit 

Each character is drawn using its antialiased glyph bitmap with hinting. Much better quality due to antialiasing, but at a higher performance cost.

anti_alias 

Each character is drawn using its antialiased glyph bitmap without hinting. Better quality due to antialiasing. Stem width differences may be noticeable because hinting is turned off.

clear_type_grid_fit 

Each character is drawn using its glyph ClearType bitmap with hinting. The highest quality setting. Used to take advantage of ClearType font features.