xtd 0.2.0
xtd::drawing::drawing_2d Namespace Reference

Definition

The xtd::drawing::drawing_2d/ namespace provides advanced two-dimensional and vector graphics functionality.

Classes

class  conical_gradient_brush
 Encapsulates a xtd::drawing::brush with a conical gradient. This class cannot be inherited. More...
 
class  graphics_path
 Defines an object used to draw lines and curves. This class cannot be inherited. More...
 
class  graphics_state
 Represents the state of a xtd::drawing::graphics object. This object is returned by a call to the xtd::drawing::graphics::save() methods. This class cannot be inherited. More...
 
class  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  linear_gradient_brush
 Encapsulates a xtd::drawing::brush with a linear gradient. This class cannot be inherited. More...
 
class  matrix
 Encapsulates a 3-by-3 affine matrix that represents a geometric transform. This class cannot be inherited. More...
 
class  radial_gradient_brush
 Encapsulates a xtd::drawing::brush with a radial gradient. This class cannot be inherited. More...
 

Alias

using gradient_stop = std::pair< xtd::drawing::color, float >
 Describes the location and color of a transition point in a gradient. More...
 
using gradient_stop_collection = std::vector< xtd::drawing::drawing_2d::gradient_stop >
 Represents a collection of xtd::drawing::drawing_2d/gradient_stop objects that can be individually accessed by index. More...
 

Enumerations

enum  compositing_mode {
  compositing_mode::source_over = 0,
  compositing_mode::source_copy = 1
}
 Specifies how the source colors are combined with the background colors. More...
 
enum  compositing_quality {
  compositing_quality::invalid = -1,
  compositing_quality::default_value = 0,
  compositing_quality::high_speed = 1,
  compositing_quality::high_quality = 2,
  compositing_quality::gamma_corrected = 3,
  compositing_quality::assume_linear = 4
}
 Specifies the quality level to use during compositing. More...
 
enum  fill_mode {
  fill_mode::alternate,
  fill_mode::winding
}
 Specifies how the interior of a closed path is filled. More...
 
enum  flush_intention {
  flush_intention::flush = 0,
  flush_intention::sync = 1
}
 Specifies whether commands in the graphics stack are terminated (flushed) immediately or executed as soon as possible. More...
 
enum  hatch_style {
  hatch_style::horizontal = 0,
  hatch_style::vertical = 1,
  hatch_style::forward_diagonal = 2,
  hatch_style::backward_diagonal = 3,
  hatch_style::cross = 4,
  hatch_style::diagonal_cross = 5,
  hatch_style::percent_05 = 6,
  hatch_style::percent_10 = 7,
  hatch_style::percent_20 = 8,
  hatch_style::percent_25 = 9,
  hatch_style::percent_30 = 10,
  hatch_style::percent_40 = 11,
  hatch_style::percent_50 = 12,
  hatch_style::percent_60 = 13,
  hatch_style::percent_70 = 14,
  hatch_style::percent_75 = 15,
  hatch_style::percent_80 = 16,
  hatch_style::percent_90 = 17,
  hatch_style::light_downward_diagonal = 18,
  hatch_style::light_upward_diagonal = 19,
  hatch_style::dark_downward_diagonal = 20,
  hatch_style::dark_upward_diagonal = 21,
  hatch_style::wide_downward_diagonal = 22,
  hatch_style::wide_upward_diagonal = 23,
  hatch_style::light_vertical = 24,
  hatch_style::light_horizontal = 25,
  hatch_style::narrow_vertical = 26,
  hatch_style::narrow_horizontal = 27,
  hatch_style::dark_vertical = 28,
  hatch_style::dark_horizontal = 29,
  hatch_style::dashed_downward_diagonal = 30,
  hatch_style::dashed_upward_diagonal = 31,
  hatch_style::dashed_horizontal = 32,
  hatch_style::dashed_vertical = 33,
  hatch_style::small_confetti = 34,
  hatch_style::large_confetti = 35,
  hatch_style::zig_zag = 36,
  hatch_style::wave = 37,
  hatch_style::diagonal_brick = 38,
  hatch_style::horizontal_brick = 39,
  hatch_style::weave = 40,
  hatch_style::plaid = 41,
  hatch_style::divot = 42,
  hatch_style::dotted_grid = 43,
  hatch_style::dotted_diamond = 44,
  hatch_style::shingle = 45,
  hatch_style::trellis = 46,
  hatch_style::sphere = 47,
  hatch_style::small_grid = 48,
  hatch_style::small_checker_board = 49,
  hatch_style::large_checker_board = 50,
  hatch_style::outlined_diamond = 51,
  hatch_style::solid_diamond = 52,
  hatch_style::wide_checker_board = 53
}
 Specifies the different patterns available for xtd::drawing::drawing_2d/::hatch_brush objects. More...
 
enum  interpolation_mode {
  interpolation_mode::invalid = -1,
  interpolation_mode::default_value = 0,
  interpolation_mode::low = 1,
  interpolation_mode::hight = 2,
  interpolation_mode::bilinear = 3,
  interpolation_mode::bicubic = 4,
  interpolation_mode::nearest_neighbor = 5,
  interpolation_mode::high_quality_bilinear = 6,
  interpolation_mode::high_quality_bicubic = 7
}
 The xtd::drawing::drawing_2d/::interpolation_mode enumeration specifies the algorithm that is used when images are scaled or rotated. More...
 
enum  line_cap {
  line_cap::flat = 0,
  line_cap::square = 1,
  line_cap::round = 2
}
 Specifies the available cap styles with which a xtd::drawing::pen object can end a line. More...
 
enum  line_join {
  line_join::miter = 0,
  line_join::bevel = 1,
  line_join::round = 2,
  line_join::miter_clipped = 3
}
 Specifies how to join consecutive line or curve segments in a figure (subpath) contained in a xtd::drawing::drawing_2d/::graphics_path object. More...
 
enum  linear_gradient_mode {
  linear_gradient_mode::horizontal = 0,
  linear_gradient_mode::vertical = 1,
  linear_gradient_mode::forward_diagonal = 2,
  linear_gradient_mode::backward_diagonal = 3
}
 Specifies the direction of a linear gradient. More...
 
enum  matrix_order {
  matrix_order::prepend = 0,
  matrix_order::append = 1
}
 Specifies the order for matrix transform operations. More...
 
enum  pen_alignment {
  pen_alignment::center = 0,
  pen_alignment::inset = 1,
  pen_alignment::outset = 2,
  pen_alignment::left = 3,
  pen_alignment::right = 4
}
 SSpecifies the alignment of a xtd::drawing::pen object in relation to the theoretical, zero-width line. More...
 
enum  pen_type {
  pen_type::solid_color = 0,
  pen_type::hatch_fill = 1,
  pen_type::texture_fill = 2,
  pen_type::path_gradient = 3,
  pen_type::linear_gradient = 4,
  pen_type::conical_gradient = 5,
  pen_type::radial_gradient = 6
}
 Specifies the type of fill a xtd::drawing::pen object uses to fill lines. More...
 
enum  pixel_offset_mode {
  pixel_offset_mode::invalid = -1,
  pixel_offset_mode::default_value = 0,
  pixel_offset_mode::high_speed = 1,
  pixel_offset_mode::high_quality = 2,
  pixel_offset_mode::none = 3,
  pixel_offset_mode::half = 4
}
 Specifies how pixels are offset during rendering. More...
 
enum  smoothing_mode {
  smoothing_mode::invalid = -1,
  smoothing_mode::default_value = 0,
  smoothing_mode::high_speed = 1,
  smoothing_mode::high_quality = 2,
  smoothing_mode::none = 3,
  smoothing_mode::anti_alias = 4
}
 Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas. More...