xtd - Reference Guide 0.2.0
xtd::drawing Namespace Reference

Definition

The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functionality is provided in the xtd::drawing::drawing2d, xtd::drawing::imaging, and xtd::drawing::text namespaces.

The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functionality is provided in the xtd::drawing::imaging, xtd::drawing::imaging, and xtd::drawing::text namespaces.

Namespaces

 drawing2d
 The xtd::drawing::drawing2d namespace provides advanced two-dimensional and vector graphics functionality.
 
 imaging
 The xtd.drawing.imaging namespace provides advanced GDI+ imaging functionality. Basic graphics functionality is provided by the xtd.drawing namespace.
 
 text
 The xtd::drawing::text namespace provides advanced GDI+ typography functionality.
 

Classes

class  basic_colors
 Basic colors for all the hmtl basic colors. This class cannot be inherited. More...
 
class  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  blue_colors
 Blue colors for all the hmtl blue colors. This class cannot be inherited. More...
 
class  brown_colors
 Brown colors for all the hmtl brown colors. This class cannot be inherited. More...
 
class  brush
 Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths. More...
 
class  brushes
 brushes for all the standard colors. This class cannot be inherited. More...
 
class  color
 Represents an ARGB (alpha, red, green, blue) color. More...
 
class  colors
 colors for all the standard colors. This class cannot be inherited. More...
 
class  cyan_colors
 Cyan colors for all the hmtl cyan colors. This class cannot be inherited. More...
 
class  font
 Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited. More...
 
class  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  graphics
 Defines an object used to draw lines and curves. This class cannot be inherited. More...
 
class  gray_colors
 Gray and black colors for all the hmtl gray and black colors. This class cannot be inherited. More...
 
class  green_colors
 Green colors for all the hmtl green colors. This class cannot be inherited. More...
 
class  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  image
 An abstract base class that provides functionality for the bitmap and metafile descended classes. More...
 
class  orange_colors
 Orange colors for all the hmtl orange colors. This class cannot be inherited. More...
 
class  pen
 Defines an object used to draw lines and curves. This class cannot be inherited. More...
 
class  pens
 pens for all the standard colors. This class cannot be inherited. More...
 
class  pink_colors
 Pink colors for all the hmtl pink colors. This class cannot be inherited. More...
 
class  point
 Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane. More...
 
class  point_f
 Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane. More...
 
class  purple_colors
 Purple, violet and magenta colors for all the hmtl purple, violet and magenta colors. This class cannot be inherited. More...
 
class  rectangle
 Stores a set of four integers that represent the location and size of a rectangle. More...
 
class  rectangle_f
 Stores a set of four floating-point numbers that represent the location and size of a rectangle. For more advanced region functions, use a xtd::drawing::region object. More...
 
class  red_colors
 Red colors for all the hmtl red colors. This class cannot be inherited. More...
 
class  region
 Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited. More...
 
class  size
 Stores an ordered pair of integers, which specify a height and width. More...
 
class  size_f
 Stores an ordered pair of floating-point, which specify a height and width. More...
 
class  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  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  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  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  system_fonts
 Specifies the fonts used to display text in Windows display elements. More...
 
class  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  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  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  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...
 
class  white_colors
 White colors for all the hmtl white colors. This class cannot be inherited. More...
 
class  yellow_colors
 Yellow colors for all the hmtl yellow colors. This class cannot be inherited. More...
 

Alias

using black_colors = xtd::drawing::gray_colors
 Gray and black colors for all the hmtl gray and black colors. More...
 
using extended_colors = xtd::drawing::colors
 extended_colors for all the html extended colors. More...
 
using magenta_colors = xtd::drawing::purple_colors
 Purple, violet and magenta colors for all the hmtl purple, violet and magenta colors. More...
 
using violet_colors = xtd::drawing::purple_colors
 Purple, violet and magenta colors for all the hmtl purple, violet and magenta colors. More...
 

Enumerations

enum  copy_pixel_operation {
  copy_pixel_operation::blackness = 66,
  copy_pixel_operation::capture_blt = 1073741824,
  copy_pixel_operation::destination_invert = 5570569,
  copy_pixel_operation::merge_copy = 12583114,
  copy_pixel_operation::merge_paint = 12255782,
  copy_pixel_operation::no_mirror_bitmap = -2147483648,
  copy_pixel_operation::not_source_copy = 3342344,
  copy_pixel_operation::not_source_erase = 1114278,
  copy_pixel_operation::pat_copy = 15728673,
  copy_pixel_operation::pat_invert = 5898313,
  copy_pixel_operation::pat_paint = 16452105,
  copy_pixel_operation::source_and = 8913094,
  copy_pixel_operation::source_copy = 13369376,
  copy_pixel_operation::source_erase = 4457256,
  copy_pixel_operation::source_invert = 6684742,
  copy_pixel_operation::source_paint = 15597702,
  copy_pixel_operation::whiteness = 16711778
}
 Determines how the source color in a copy pixel operation is combined with the destination color to result in a final color. More...
 
enum  dash_style {
  dash_style::solid = 0,
  dash_style::dash,
  dash_style::dot,
  dash_style::dash_dot,
  dash_style::dash_dot_dot,
  dash_style::custom
}
 Specifies the style of dashed lines drawn with a xtd::drawing::pen object. More...
 
enum  font_style {
  font_style::regular = 0,
  font_style::bold = 0b1,
  font_style::italic = 0b10,
  font_style::underline = 0b100,
  font_style::strikeout = 0b1000
}
 Specifies style information applied to text. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  graphics_unit {
  graphics_unit::world = 0,
  graphics_unit::display = 1,
  graphics_unit::pixel = 2,
  graphics_unit::point = 3,
  graphics_unit::inch = 4,
  graphics_unit::document = 5,
  graphics_unit::millimeter = 6
}
 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  known_color {
  known_color::active_border = 1,
  known_color::active_caption,
  known_color::active_caption_text,
  known_color::app_workspace,
  known_color::control,
  known_color::control_dark,
  known_color::control_dark_dark,
  known_color::control_light,
  known_color::control_light_light,
  known_color::control_text,
  known_color::desktop,
  known_color::gray_text,
  known_color::highlight,
  known_color::highlight_text,
  known_color::hot_track,
  known_color::inactive_border,
  known_color::inactive_caption,
  known_color::inactive_caption_text,
  known_color::info,
  known_color::info_text,
  known_color::menu,
  known_color::menu_text,
  known_color::scroll_bar,
  known_color::window,
  known_color::window_frame,
  known_color::window_text,
  known_color::transparent,
  known_color::alice_blue,
  known_color::antique_white,
  known_color::aqua,
  known_color::aquamarine,
  known_color::azure,
  known_color::beige,
  known_color::bisque,
  known_color::black,
  known_color::blanched_almond,
  known_color::blue,
  known_color::blue_violet,
  known_color::brown,
  known_color::burly_wood,
  known_color::cadet_blue,
  known_color::chartreuse,
  known_color::chocolate,
  known_color::coral,
  known_color::cornflower_blue,
  known_color::cornsilk,
  known_color::crimson,
  known_color::cyan,
  known_color::dark_blue,
  known_color::dark_cyan,
  known_color::dark_goldenrod,
  known_color::dark_gray,
  known_color::dark_green,
  known_color::dark_khaki,
  known_color::dark_magenta,
  known_color::dark_olive_green,
  known_color::dark_orange,
  known_color::dark_orchid,
  known_color::dark_red,
  known_color::dark_salmon,
  known_color::dark_sea_green,
  known_color::dark_slate_blue,
  known_color::dark_slate_gray,
  known_color::dark_turquoise,
  known_color::dark_violet,
  known_color::deep_pink,
  known_color::deep_sky_blue,
  known_color::dim_gray,
  known_color::dodger_blue,
  known_color::firebrick,
  known_color::floral_white,
  known_color::forest_green,
  known_color::fuchsia,
  known_color::gainsboro,
  known_color::ghost_white,
  known_color::gold,
  known_color::goldenrod,
  known_color::gray,
  known_color::green,
  known_color::green_yellow,
  known_color::honeydew,
  known_color::hot_pink,
  known_color::indian_red,
  known_color::indigo,
  known_color::ivory,
  known_color::khaki,
  known_color::lavender,
  known_color::lavender_blush,
  known_color::lawn_green,
  known_color::lemon_chiffon,
  known_color::light_blue,
  known_color::light_coral,
  known_color::light_cyan,
  known_color::light_goldenrod_yellow,
  known_color::light_gray,
  known_color::light_green,
  known_color::light_pink,
  known_color::light_salmon,
  known_color::light_sea_green,
  known_color::light_sky_blue,
  known_color::light_slate_gray,
  known_color::light_steel_blue,
  known_color::light_yellow,
  known_color::lime,
  known_color::lime_green,
  known_color::linen,
  known_color::magenta,
  known_color::maroon,
  known_color::medium_aquamarine,
  known_color::medium_blue,
  known_color::medium_orchid,
  known_color::medium_purple,
  known_color::medium_sea_green,
  known_color::medium_slate_blue,
  known_color::medium_spring_green,
  known_color::medium_turquoise,
  known_color::medium_violet_red,
  known_color::midnight_blue,
  known_color::mint_cream,
  known_color::misty_rose,
  known_color::moccasin,
  known_color::navajo_white,
  known_color::navy,
  known_color::old_lace,
  known_color::olive,
  known_color::olive_drab,
  known_color::orange,
  known_color::orange_red,
  known_color::orchid,
  known_color::pale_goldenrod,
  known_color::pale_green,
  known_color::pale_turquoise,
  known_color::pale_violet_red,
  known_color::papaya_whip,
  known_color::peach_puff,
  known_color::peru,
  known_color::pink,
  known_color::plum,
  known_color::powder_blue,
  known_color::purple,
  known_color::rebecca_purple,
  known_color::red,
  known_color::rosy_brown,
  known_color::royal_blue,
  known_color::saddle_brown,
  known_color::salmon,
  known_color::sandy_brown,
  known_color::sea_green,
  known_color::sea_shell,
  known_color::sienna,
  known_color::silver,
  known_color::sky_blue,
  known_color::slate_blue,
  known_color::slate_gray,
  known_color::snow,
  known_color::spring_green,
  known_color::steel_blue,
  known_color::tan,
  known_color::teal,
  known_color::thistle,
  known_color::tomato,
  known_color::turquoise,
  known_color::violet,
  known_color::wheat,
  known_color::white,
  known_color::white_smoke,
  known_color::yellow,
  known_color::yellow_green,
  known_color::button_face,
  known_color::button_highlight,
  known_color::button_shadow,
  known_color::gradient_active_caption,
  known_color::gradient_inactive_caption,
  known_color::menu_bar,
  known_color::menu_highlight,
  known_color::accent,
  known_color::accent_text,
  known_color::text_box,
  known_color::text_box_text,
  known_color::active_text,
  known_color::link_text,
  known_color::visited_text
}
 Specifies the known system colors. More...
 
enum  rotate_flip_type {
  rotate_flip_type::rotate_none_flip_none = 0,
  rotate_flip_type::rotate_90_flip_none = 1,
  rotate_flip_type::rotate_180_flip_none = 2,
  rotate_flip_type::rotate_270_flip_none = 3,
  rotate_flip_type::rotate_none_flip_x = 4,
  rotate_flip_type::rotate_90_flip_x = 5,
  rotate_flip_type::rotate_180_flip_x = 6,
  rotate_flip_type::rotate_270_flip_x = 7,
  rotate_flip_type::rotate_none_flip_y = rotate_180_flip_x,
  rotate_flip_type::rotate_90_flip_y = rotate_270_flip_x,
  rotate_flip_type::rotate_180_flip_y = rotate_none_flip_x,
  rotate_flip_type::rotate_270_flip_y = rotate_90_flip_x,
  rotate_flip_type::rotate_none_flip_xy = rotate_180_flip_none,
  rotate_flip_type::rotate_90_flip_xy = rotate_270_flip_none,
  rotate_flip_type::rotate_180_flip_xy = rotate_none_flip_none,
  rotate_flip_type::rotate_270_flip_xy = rotate_90_flip_none
}
 Specifies how much an image is rotated and the axis used to flip the image. More...
 
enum  string_alignment {
  string_alignment::near = 0,
  string_alignment::center = 1,
  string_alignment::far = 2
}
 Specifies the alignment of a text string relative to its layout rectangle. More...
 
enum  string_format_flags {
  string_format_flags::direction_right_to_left = 0b1,
  string_format_flags::direction_vertical = 0b10,
  string_format_flags::fit_black_box = 0b100,
  string_format_flags::display_format_control = 0b100000,
  string_format_flags::no_font_fallback = 0b10000000000,
  string_format_flags::measure_trailing_spaces = 0b100000000000,
  string_format_flags::no_wrap = 0b1000000000000,
  string_format_flags::line_limit = 0b10000000000000,
  string_format_flags::no_clip = 0b100000000000000
}
 Specifies the display and layout information for text strings. This enumeration allows a bitwise combination of its member values. More...
 
enum  string_trimming {
  string_trimming::none = 0,
  string_trimming::character = 1,
  string_trimming::word = 2,
  string_trimming::ellipsis_character = 3,
  string_trimming::ellipsis_word = 4,
  string_trimming::ellipsis_path = 5
}
 Specifies how to trim characters from a string that does not completely fit into a layout shape. More...