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

Definition

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

Classes

class  xtd::drawing::actions_system_images
 Each property of the xtd::drawing::actions_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::animations_system_images
 Each property of the xtd::drawing::animations_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::apple_colors
 Apple colors for all the Apple colors. This class cannot be inherited. More...
 
class  xtd::drawing::applications_system_images
 Each property of the xtd::drawing::applications_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::basic_colors
 Basic colors for all the hmtl basic colors. This class cannot be inherited. More...
 
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::blue_colors
 Blue colors for all the hmtl blue colors. This class cannot be inherited. More...
 
class  xtd::drawing::brown_colors
 Brown colors for all the hmtl brown colors. This class cannot be inherited. 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::buffered_graphics
 Provides a graphics buffer for double buffering. More...
 
class  xtd::drawing::buffered_graphics_context
 Provides methods for creating graphics buffers that can be used for double buffering. More...
 
class  xtd::drawing::categories_system_images
 Each property of the xtd::drawing::categories_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::color
 Represents an ARGB (alpha, red, green, blue) color. More...
 
class  xtd::drawing::color_converter
 Converts colors to and from xtd::drawing::color class. This class cannot be inherited. More...
 
class  xtd::drawing::color_translator
 Translates colors to and from GDI+ xtd::drawing::color structures. This class cannot be inherited. More...
 
class  xtd::drawing::colors
 colors for all the standard colors. This class cannot be inherited. More...
 
class  xtd::drawing::crayons_colors
 Apple colors for all the Apple colors. This class cannot be inherited. More...
 
class  xtd::drawing::cyan_colors
 Cyan colors for all the hmtl cyan colors. This class cannot be inherited. More...
 
class  xtd::drawing::devices_system_images
 Each property of the xtd::drawing::devices_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::drawing_2d::conical_gradient_brush
 Encapsulates a xtd::drawing::brush with a conical gradient. This class cannot be inherited. More...
 
class  xtd::drawing::drawing_2d::graphics_path
 Defines an object used to draw lines and curves. This class cannot be inherited. More...
 
class  xtd::drawing::drawing_2d::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  xtd::drawing::drawing_2d::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::drawing_2d::linear_gradient_brush
 Encapsulates a xtd::drawing::brush with a linear gradient. This class cannot be inherited. More...
 
class  xtd::drawing::drawing_2d::matrix
 Encapsulates a 3-by-3 affine matrix that represents a geometric transform. This class cannot be inherited. More...
 
class  xtd::drawing::drawing_2d::radial_gradient_brush
 Encapsulates a xtd::drawing::brush with a radial gradient. This class cannot be inherited. More...
 
class  xtd::drawing::emblems_system_images
 Each property of the xtd::drawing::emblems_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::emotes_system_images
 Each property of the xtd::drawing::emotes_system_images class is an xtd::drawing::image object for Windows system-wide images. 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::gray_colors
 Gray and black colors for all the hmtl gray and black colors. This class cannot be inherited. More...
 
class  xtd::drawing::green_colors
 Green colors for all the hmtl green colors. 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::image_converter
 Converts images to and from xtd::drawing::image class. This class cannot be inherited. More...
 
class  xtd::drawing::imaging::bitmap_data
 Specifies the attributes of a bitmap image. The xtd::drawing::imaging::bitmap_data class is used by the xtd::drawing::bitmap::lock_bits and xtd::drawing::bitmap::unlock_bits methods of the xtd::drawing::bitmap class. Not inheritable. 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::encoder
 An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an image encoder parameter. More...
 
class  xtd::drawing::imaging::encoder_parameter
 Used to pass a value, or an array of values, to an image encoder. More...
 
class  xtd::drawing::imaging::encoder_parameters
 Encapsulates an array of EncoderParameter objects. 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::international_system_images
 Each property of the xtd::drawing::international_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::mimetypes_system_images
 Each property of the xtd::drawing::mimetypes_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::orange_colors
 Orange colors for all the hmtl orange colors. This class cannot be inherited. 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::pink_colors
 Pink colors for all the hmtl pink colors. This class cannot be inherited. More...
 
class  xtd::drawing::places_system_images
 Each property of the xtd::drawing::places_system_images class is an xtd::drawing::image object for Windows system-wide images. 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::purple_colors
 Purple, violet and magenta colors for all the hmtl purple, violet and magenta colors. This class cannot be inherited. 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-point numbers that represent the location and size of a rectangle. For more advanced region functions, use a xtd::drawing::region object. More...
 
class  xtd::drawing::red_colors
 Red colors for all the hmtl red colors. This class cannot be inherited. More...
 
class  xtd::drawing::region
 Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited. 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::status_system_images
 Each property of the xtd::drawing::status_system_images class is an xtd::drawing::image object for Windows system-wide images. 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_images_base
 Represents the base for all system_images clases (xtd::drawing::system_images). 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::texts
 Provides a collection of string objects for use by a Windows Forms 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...
 
class  xtd::drawing::white_colors
 White colors for all the hmtl white colors. This class cannot be inherited. More...
 
class  xtd::drawing::xtd_system_images
 Each property of the xtd::drawing::xtd_system_images class is an xtd::drawing::image object for Windows system-wide images. This class cannot be inherited. More...
 
class  xtd::drawing::yellow_colors
 Yellow colors for all the hmtl yellow colors. This class cannot be inherited. More...
 

Enumerations

enum class  xtd::drawing::drawing_2d::compositing_mode {
  xtd::drawing::drawing_2d::compositing_mode::source_over ,
  xtd::drawing::drawing_2d::compositing_mode::source_copy
}
 Specifies how the source colors are combined with the background colors. More...
 
enum class  xtd::drawing::drawing_2d::compositing_quality {
  xtd::drawing::drawing_2d::compositing_quality::invalid ,
  xtd::drawing::drawing_2d::compositing_quality::default_value ,
  xtd::drawing::drawing_2d::compositing_quality::high_speed ,
  xtd::drawing::drawing_2d::compositing_quality::high_quality ,
  xtd::drawing::drawing_2d::compositing_quality::gamma_corrected ,
  xtd::drawing::drawing_2d::compositing_quality::assume_linear
}
 Specifies the quality level to use during compositing. More...
 
enum class  xtd::drawing::copy_pixel_operation {
  xtd::drawing::copy_pixel_operation::blackness ,
  xtd::drawing::copy_pixel_operation::capture_blt ,
  xtd::drawing::copy_pixel_operation::destination_invert ,
  xtd::drawing::copy_pixel_operation::merge_copy ,
  xtd::drawing::copy_pixel_operation::merge_paint ,
  xtd::drawing::copy_pixel_operation::no_mirror_bitmap ,
  xtd::drawing::copy_pixel_operation::not_source_copy ,
  xtd::drawing::copy_pixel_operation::not_source_erase ,
  xtd::drawing::copy_pixel_operation::pat_copy ,
  xtd::drawing::copy_pixel_operation::pat_invert ,
  xtd::drawing::copy_pixel_operation::pat_paint ,
  xtd::drawing::copy_pixel_operation::source_and ,
  xtd::drawing::copy_pixel_operation::source_copy ,
  xtd::drawing::copy_pixel_operation::source_erase ,
  xtd::drawing::copy_pixel_operation::source_invert ,
  xtd::drawing::copy_pixel_operation::source_paint ,
  xtd::drawing::copy_pixel_operation::whiteness
}
 Determines how the source color in a copy pixel operation is combined with the destination color to result in a final color. More...
 
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::imaging::encoder_parameter_value_type {
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_byte ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_ascii ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_short ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_long ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_rational ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_long_range ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_undefined ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_rational_range ,
  xtd::drawing::imaging::encoder_parameter_value_type::value_type_rational_pointer
}
 Specifies the data type of the xtd::drawing::imaging::encoder_parameter used with the xtd::drawing::image::save or xtd::drawing::image::save_add method of an image. More...
 
enum class  xtd::drawing::drawing_2d::fill_mode {
  xtd::drawing::drawing_2d::fill_mode::alternate ,
  xtd::drawing::drawing_2d::fill_mode::winding
}
 Specifies how the interior of a closed path is filled. More...
 
enum class  xtd::drawing::drawing_2d::flush_intention {
  xtd::drawing::drawing_2d::flush_intention::flush ,
  xtd::drawing::drawing_2d::flush_intention::sync
}
 Specifies whether commands in the graphics stack are terminated (flushed) immediately or executed as soon as possible. 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::drawing_2d::hatch_style {
  xtd::drawing::drawing_2d::hatch_style::horizontal ,
  xtd::drawing::drawing_2d::hatch_style::vertical ,
  xtd::drawing::drawing_2d::hatch_style::forward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::backward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::cross ,
  xtd::drawing::drawing_2d::hatch_style::diagonal_cross ,
  xtd::drawing::drawing_2d::hatch_style::percent_05 ,
  xtd::drawing::drawing_2d::hatch_style::percent_10 ,
  xtd::drawing::drawing_2d::hatch_style::percent_20 ,
  xtd::drawing::drawing_2d::hatch_style::percent_25 ,
  xtd::drawing::drawing_2d::hatch_style::percent_30 ,
  xtd::drawing::drawing_2d::hatch_style::percent_40 ,
  xtd::drawing::drawing_2d::hatch_style::percent_50 ,
  xtd::drawing::drawing_2d::hatch_style::percent_60 ,
  xtd::drawing::drawing_2d::hatch_style::percent_70 ,
  xtd::drawing::drawing_2d::hatch_style::percent_75 ,
  xtd::drawing::drawing_2d::hatch_style::percent_80 ,
  xtd::drawing::drawing_2d::hatch_style::percent_90 ,
  xtd::drawing::drawing_2d::hatch_style::light_downward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::light_upward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::dark_downward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::dark_upward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::wide_downward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::wide_upward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::light_vertical ,
  xtd::drawing::drawing_2d::hatch_style::light_horizontal ,
  xtd::drawing::drawing_2d::hatch_style::narrow_vertical ,
  xtd::drawing::drawing_2d::hatch_style::narrow_horizontal ,
  xtd::drawing::drawing_2d::hatch_style::dark_vertical ,
  xtd::drawing::drawing_2d::hatch_style::dark_horizontal ,
  xtd::drawing::drawing_2d::hatch_style::dashed_downward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::dashed_upward_diagonal ,
  xtd::drawing::drawing_2d::hatch_style::dashed_horizontal ,
  xtd::drawing::drawing_2d::hatch_style::dashed_vertical ,
  xtd::drawing::drawing_2d::hatch_style::small_confetti ,
  xtd::drawing::drawing_2d::hatch_style::large_confetti ,
  xtd::drawing::drawing_2d::hatch_style::zig_zag ,
  xtd::drawing::drawing_2d::hatch_style::wave ,
  xtd::drawing::drawing_2d::hatch_style::diagonal_brick ,
  xtd::drawing::drawing_2d::hatch_style::horizontal_brick ,
  xtd::drawing::drawing_2d::hatch_style::weave ,
  xtd::drawing::drawing_2d::hatch_style::plaid ,
  xtd::drawing::drawing_2d::hatch_style::divot ,
  xtd::drawing::drawing_2d::hatch_style::dotted_grid ,
  xtd::drawing::drawing_2d::hatch_style::dotted_diamond ,
  xtd::drawing::drawing_2d::hatch_style::shingle ,
  xtd::drawing::drawing_2d::hatch_style::trellis ,
  xtd::drawing::drawing_2d::hatch_style::sphere ,
  xtd::drawing::drawing_2d::hatch_style::small_grid ,
  xtd::drawing::drawing_2d::hatch_style::small_checker_board ,
  xtd::drawing::drawing_2d::hatch_style::large_checker_board ,
  xtd::drawing::drawing_2d::hatch_style::outlined_diamond ,
  xtd::drawing::drawing_2d::hatch_style::solid_diamond ,
  xtd::drawing::drawing_2d::hatch_style::wide_checker_board
}
 Specifies the different patterns available for xtd::drawing::drawing_2d::hatch_brush objects. 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::imaging::image_lock_mode {
  xtd::drawing::imaging::image_lock_mode::read_only ,
  xtd::drawing::imaging::image_lock_mode::write_only ,
  xtd::drawing::imaging::image_lock_mode::read_write ,
  xtd::drawing::imaging::image_lock_mode::user_input_buffer
}
 Specifies flags that are passed to the flags parameter of the xtd::drawing::bitmap::lock_bits method. The xtd::drawing::bitmap::lock_bits method locks a portion of an image so that you can read or write the pixel data. More...
 
enum class  xtd::drawing::drawing_2d::interpolation_mode {
  xtd::drawing::drawing_2d::interpolation_mode::invalid ,
  xtd::drawing::drawing_2d::interpolation_mode::default_value ,
  xtd::drawing::drawing_2d::interpolation_mode::low ,
  xtd::drawing::drawing_2d::interpolation_mode::hight ,
  xtd::drawing::drawing_2d::interpolation_mode::bilinear ,
  xtd::drawing::drawing_2d::interpolation_mode::bicubic ,
  xtd::drawing::drawing_2d::interpolation_mode::nearest_neighbor ,
  xtd::drawing::drawing_2d::interpolation_mode::high_quality_bilinear ,
  xtd::drawing::drawing_2d::interpolation_mode::high_quality_bicubic
}
 The xtd::drawing::drawing_2d::interpolation_mode enumeration specifies the algorithm that is used when images are scaled or rotated. More...
 
enum class  xtd::drawing::drawing_2d::line_cap {
  xtd::drawing::drawing_2d::line_cap::flat ,
  xtd::drawing::drawing_2d::line_cap::square ,
  xtd::drawing::drawing_2d::line_cap::round
}
 Specifies the available cap styles with which a xtd::drawing::pen object can end a line. More...
 
enum class  xtd::drawing::drawing_2d::line_join {
  xtd::drawing::drawing_2d::line_join::miter ,
  xtd::drawing::drawing_2d::line_join::bevel ,
  xtd::drawing::drawing_2d::line_join::round ,
  xtd::drawing::drawing_2d::line_join::miter_clipped
}
 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 class  xtd::drawing::drawing_2d::linear_gradient_mode {
  xtd::drawing::drawing_2d::linear_gradient_mode::horizontal ,
  xtd::drawing::drawing_2d::linear_gradient_mode::vertical ,
  xtd::drawing::drawing_2d::linear_gradient_mode::forward_diagonal ,
  xtd::drawing::drawing_2d::linear_gradient_mode::backward_diagonal
}
 Specifies the direction of a linear gradient. More...
 
enum class  xtd::drawing::drawing_2d::matrix_order {
  xtd::drawing::drawing_2d::matrix_order::prepend ,
  xtd::drawing::drawing_2d::matrix_order::append
}
 Specifies the order for matrix transform operations. More...
 
enum class  xtd::drawing::drawing_2d::pen_alignment {
  xtd::drawing::drawing_2d::pen_alignment::center ,
  xtd::drawing::drawing_2d::pen_alignment::inset ,
  xtd::drawing::drawing_2d::pen_alignment::outset ,
  xtd::drawing::drawing_2d::pen_alignment::left ,
  xtd::drawing::drawing_2d::pen_alignment::right
}
 Specifies the alignment of a xtd::drawing::pen object in relation to the theoretical, zero-width line. More...
 
enum class  xtd::drawing::drawing_2d::pen_type {
  xtd::drawing::drawing_2d::pen_type::solid_color ,
  xtd::drawing::drawing_2d::pen_type::hatch_fill ,
  xtd::drawing::drawing_2d::pen_type::texture_fill ,
  xtd::drawing::drawing_2d::pen_type::path_gradient ,
  xtd::drawing::drawing_2d::pen_type::linear_gradient ,
  xtd::drawing::drawing_2d::pen_type::conical_gradient ,
  xtd::drawing::drawing_2d::pen_type::radial_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::format_16bpp_rgb555 ,
  xtd::drawing::imaging::pixel_format::format_16bpp_rgb565 ,
  xtd::drawing::imaging::pixel_format::format_24bpp_rgb ,
  xtd::drawing::imaging::pixel_format::format_32bpp_rgb ,
  xtd::drawing::imaging::pixel_format::format_1bpp_indexed ,
  xtd::drawing::imaging::pixel_format::format_4bpp_indexed ,
  xtd::drawing::imaging::pixel_format::format_8bpp_indexed ,
  xtd::drawing::imaging::pixel_format::alpha ,
  xtd::drawing::imaging::pixel_format::format_16bpp_argb1555 ,
  xtd::drawing::imaging::pixel_format::palpha ,
  xtd::drawing::imaging::pixel_format::format_32bpp_pargb ,
  xtd::drawing::imaging::pixel_format::extended ,
  xtd::drawing::imaging::pixel_format::format_16bpp_gray_scale ,
  xtd::drawing::imaging::pixel_format::format_48bpp_rgb ,
  xtd::drawing::imaging::pixel_format::format_64bpp_pargb ,
  xtd::drawing::imaging::pixel_format::canonical ,
  xtd::drawing::imaging::pixel_format::format_32bpp_argb ,
  xtd::drawing::imaging::pixel_format::format_64bpp_argb
}
 Specifies the format of the color data for each pixel in the image. More...
 
enum class  xtd::drawing::drawing_2d::pixel_offset_mode {
  xtd::drawing::drawing_2d::pixel_offset_mode::invalid ,
  xtd::drawing::drawing_2d::pixel_offset_mode::default_value ,
  xtd::drawing::drawing_2d::pixel_offset_mode::high_speed ,
  xtd::drawing::drawing_2d::pixel_offset_mode::high_quality ,
  xtd::drawing::drawing_2d::pixel_offset_mode::none ,
  xtd::drawing::drawing_2d::pixel_offset_mode::half
}
 Specifies how pixels are offset during rendering. More...
 
enum class  xtd::drawing::rotate_flip_type {
  xtd::drawing::rotate_flip_type::rotate_none_flip_none ,
  xtd::drawing::rotate_flip_type::rotate_90_flip_none ,
  xtd::drawing::rotate_flip_type::rotate_180_flip_none ,
  xtd::drawing::rotate_flip_type::rotate_270_flip_none ,
  xtd::drawing::rotate_flip_type::rotate_none_flip_x ,
  xtd::drawing::rotate_flip_type::rotate_90_flip_x ,
  xtd::drawing::rotate_flip_type::rotate_180_flip_x ,
  xtd::drawing::rotate_flip_type::rotate_270_flip_x ,
  xtd::drawing::rotate_flip_type::rotate_none_flip_y ,
  xtd::drawing::rotate_flip_type::rotate_90_flip_y ,
  xtd::drawing::rotate_flip_type::rotate_180_flip_y ,
  xtd::drawing::rotate_flip_type::rotate_270_flip_y ,
  xtd::drawing::rotate_flip_type::rotate_none_flip_xy ,
  xtd::drawing::rotate_flip_type::rotate_90_flip_xy ,
  xtd::drawing::rotate_flip_type::rotate_180_flip_xy ,
  xtd::drawing::rotate_flip_type::rotate_270_flip_xy
}
 Specifies how much an image is rotated and the axis used to flip the image. More...
 
enum class  xtd::drawing::drawing_2d::smoothing_mode {
  xtd::drawing::drawing_2d::smoothing_mode::invalid ,
  xtd::drawing::drawing_2d::smoothing_mode::default_value ,
  xtd::drawing::drawing_2d::smoothing_mode::high_speed ,
  xtd::drawing::drawing_2d::smoothing_mode::high_quality ,
  xtd::drawing::drawing_2d::smoothing_mode::none ,
  xtd::drawing::drawing_2d::smoothing_mode::anti_alias
}
 Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas. More...
 

Enumeration Type Documentation

◆ compositing_mode

#include <xtd.drawing/include/xtd/drawing/drawing_2d/compositing_mode.h>

Specifies how the source colors are combined with the background colors.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Enumerator
source_over 

Specifies that when a color is rendered, it is blended with the background color. The blend is determined by the alpha component of the color being rendered.

source_copy 

Specifies that when a color is rendered, it overwrites the background color.

◆ compositing_quality

#include <xtd.drawing/include/xtd/drawing/drawing_2d/compositing_quality.h>

Specifies the quality level to use during compositing.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Remarks
Compositing is done during rendering when the source pixels are combined with the destination pixels to produce the resultant pixels. The quality of compositing directly relates to the visual quality of the output and is inversely proportional to the render time. The higher the quality, the slower the render time. This is because the higher the quality level, the more surrounding pixels need to be taken into account during the composite. The linear quality setting (AssumeLinear) compromises by providing better quality than the default quality at a slightly lower speed.
Enumerator
invalid 

Invalid quality.

default_value 

Default quality.

high_speed 

High speed, low quality.

high_quality 

High quality, low speed compositing.

gamma_corrected 

Gamma correction is used.

assume_linear 

Assume linear values.

◆ copy_pixel_operation

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

Determines how the source color in a copy pixel operation is combined with the destination color to result in a final color.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
The xtd::drawing::copy_pixel_operation enumeration is used by the xtd::drawing::graphics::copy_from_screen method of the xtd::drawing::graphics class.
Enumerator
blackness 

The destination area is filled by using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)

capture_blt 

Windows that are layered on top of your window are included in the resulting image. By default, the image contains only your window. Note that this generally cannot be used for printing device contexts.

destination_invert 

The destination area is inverted.

merge_copy 

The colors of the source area are merged with the colors of the selected brush of the destination device context using the Boolean AND operator.

merge_paint 

The colors of the inverted source area are merged with the colors of the destination area by using the Boolean OR operator.

no_mirror_bitmap 

The bitmap is not mirrored.

not_source_copy 

The inverted source area is copied to the destination.

not_source_erase 

The source and destination colors are combined using the Boolean OR operator, and then resultant color is then inverted.

pat_copy 

The brush currently selected in the destination device context is copied to the destination bitmap.

pat_invert 

The colors of the brush currently selected in the destination device context are combined with the colors of the destination are using the Boolean XOR operator.

pat_paint 

The colors of the brush currently selected in the destination device context are combined with the colors of the inverted source area using the Boolean OR operator. The result of this operation is combined with the colors of the destination area using the Boolean OR operator.

source_and 

The colors of the source and destination areas are combined using the Boolean AND operator.

source_copy 

The source area is copied directly to the destination area.

source_erase 

The inverted colors of the destination area are combined with the colors of the source area using the Boolean AND operator.

source_invert 

The colors of the source and destination areas are combined using the Boolean XOR operator.

source_paint 

The colors of the source and destination areas are combined using the Boolean OR operator.

whiteness 

The destination area is filled by using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)

◆ 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.

◆ encoder_parameter_value_type

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

Specifies the data type of the xtd::drawing::imaging::encoder_parameter used with the xtd::drawing::image::save or xtd::drawing::image::save_add method of an image.

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

An 8-bit unsigned integer.

value_type_ascii 

An 8-bit ASCII value. This field specifies that the array of values is a null-terminated ASCII character string.

value_type_short 

A 16-bit, unsigned integer.

value_type_long 

A 32-bit unsigned integer.

value_type_rational 

A pair of 32-bit unsigned integers. Each pair represents a fraction, the first integer being the numerator and the second integer being the denominator.

value_type_long_range 

Two long values that specify a range of integer values. The first value specifies the lower end, and the second value specifies the higher end. All values are inclusive at both ends.

value_type_undefined 

A byte that has no data type defined. The variable can take any value depending on field definition.

value_type_rational_range 

A set of four 32-bit unsigned integers. The first two integers represent one fraction, and the second two integers represent a second fraction.
The two fractions represent a range of rational numbers. The first fraction is the smallest rational number in the range, and the second fraction is the largest rational number in the range. The values are inclusive at both ends.

value_type_rational_pointer 

A pointer to a block of custom metadata.

◆ fill_mode

#include <xtd.drawing/include/xtd/drawing/drawing_2d/fill_mode.h>

Specifies how the interior of a closed path is filled.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
An application fills the interior of a path using one of two fill modes: alternate or winding. The mode determines how to fill and clip the interior of a closed figure.
The default mode is xtd::drawing::drawin2d::fill_mode::alternate. To determine the interiors of closed figures in the alternate mode, draw a line from any arbitrary start point in the path to some point obviously outside the path. If the line crosses an odd number of path segments, the starting point is inside the closed region and is therefore part of the fill or clipping area. An even number of crossings means that the point is not in an area to be filled or clipped. An open figure is filled or clipped by using a line to connect the last point to the first point of the figure.
The xtd::drawing::drawin2d::fill_mode::winding mode considers the direction of the path segments at each intersection. It adds one for every clockwise intersection, and subtracts one for every counterclockwise intersection. If the result is nonzero, the point is considered inside the fill or clip area. A zero count means that the point lies outside the fill or clip area.
A figure is considered clockwise or counterclockwise based on the order in which the segments of the figure are drawn.
Enumerator
alternate 

Specifies the alternate fill mode.

winding 

Specifies the winding fill mode.

◆ flush_intention

#include <xtd.drawing/include/xtd/drawing/drawing_2d/flush_intention.h>

Specifies whether commands in the graphics stack are terminated (flushed) immediately or executed as soon as possible.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Enumerator
flush 

Specifies that the stack of all graphics operations is flushed immediately.

sync 

Specifies that all graphics operations on the stack are executed as soon as possible. This synchronizes the graphics state.

◆ 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/drawing_2d/hatch_style.h>

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

Namespace
xtd::drawing::drawing_2d
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 xtd::drawing::drawing_2d::hatch_style::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 xtd::drawing::drawing_2d::hatch_style::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 xtd::drawing::drawing_2d::hatch_style::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 xtd::drawing::drawing_2d::hatch_style::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 xtd::drawing::drawing_2d::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 xtd::drawing::drawing_2d::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 xtd::drawing::drawing_2d::hatch_style::vertical.

light_horizontal 

Specifies horizontal lines that are spaced 50 percent closer together than xtd::drawing::drawing_2d::hatch_style::horizontal.

narrow_vertical 

Specifies vertical lines that are spaced 75 percent closer together than hatch style xtd::drawing::drawing_2d::hatch_style::vertical (or 25 percent closer together than xtd::drawing::drawing_2d::hatch_style::light_vertical).

narrow_horizontal 

Specifies horizontal lines that are spaced 75 percent closer together than hatch style xtd::drawing::drawing_2d::hatch_style::horizontal (or 25 percent closer together than xtd::drawing::drawing_2d::hatch_style::light_horizontal).

dark_vertical 

Specifies vertical lines that are spaced 50 percent closer together than xtd::drawing::drawing_2d::hatch_style::vertical and are twice its width.

dark_horizontal 

Specifies horizontal lines that are spaced 50 percent closer together than xtd::drawing::drawing_2d::hatch_style::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 xtd::drawing::drawing_2d::hatch_style::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 xtd::drawing::drawing_2d::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 xtd::drawing::drawing_2d::hatch_style::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.

wide_checker_board 

Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of xtd::drawing::drawing_2d::hatch_style::large_checker_board and Four times the size of xtd::drawing::drawing_2d::hatch_style::small_checker_board.

◆ 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.

◆ image_lock_mode

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

Specifies flags that are passed to the flags parameter of the xtd::drawing::bitmap::lock_bits method. The xtd::drawing::bitmap::lock_bits method locks a portion of an image so that you can read or write the pixel data.

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

Specifies that a portion of the image is locked for reading.

write_only 

Specifies that a portion of the image is locked for writing.

read_write 

Specifies that a portion of the image is locked for reading or writing.

user_input_buffer 

Specifies that the buffer used for reading or writing pixel data is allocated by the user. If this flag is set, the flags parameter of the xtd::drawing::bitmap::lock_bits method serves as an input parameter (and possibly as an output parameter). If this flag is cleared, then the flags parameter serves only as an output parameter.

◆ interpolation_mode

#include <xtd.drawing/include/xtd/drawing/drawing_2d/interpolation_mode.h>

The xtd::drawing::drawing_2d::interpolation_mode enumeration specifies the algorithm that is used when images are scaled or rotated.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Enumerator
invalid 

Equivalent to the xtd::drawing::drawing_2d::quality_mode::invalid element of the xtd::drawing::drawing_2d::quality_mode enumeration.

default_value 

Specifies default mode.

low 

Specifies low quality interpolation.

hight 

Specifies high quality interpolation.

bilinear 

Specifies bilinear interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 50 percent of its original size.

bicubic 

Specifies bicubic interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 25 percent of its original size.

nearest_neighbor 

Specifies nearest-neighbor interpolation.

high_quality_bilinear 

Specifies high-quality, bilinear interpolation. Prefiltering is performed to ensure high-quality shrinking.

high_quality_bicubic 

Specifies high-quality, bicubic interpolation. Prefiltering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images.

◆ line_cap

#include <xtd.drawing/include/xtd/drawing/drawing_2d/line_cap.h>

Specifies the available cap styles with which a xtd::drawing::pen object can end a line.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Enumerator
flat 

Specifies a flat line cap.

square 

Specifies a square line cap.

round 

Specifies a round line cap.

◆ line_join

#include <xtd.drawing/include/xtd/drawing/drawing_2d/line_join.h>

Specifies how to join consecutive line or curve segments in a figure (subpath) contained in a xtd::drawing::drawing_2d::graphics_path object.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Remarks
Compositing is done during rendering when the source pixels are combined with the destination pixels to produce the resultant pixels. The quality of compositing directly relates to the visual quality of the output and is inversely proportional to the render time. The higher the quality, the slower the render time. This is because the higher the quality level, the more surrounding pixels need to be taken into account during the composite. The linear quality setting (AssumeLinear) compromises by providing better quality than the default quality at a slightly lower speed.
Enumerator
miter 

Specifies a mitered join. This produces a sharp corner or a clipped corner, depending on whether the length of the miter exceeds the miter limit.

bevel 

Specifies a beveled join. This produces a diagonal corner.

round 

Specifies a circular join. This produces a smooth, circular arc between the lines.

miter_clipped 

Specifies a mitered join. This produces a sharp corner or a beveled corner, depending on whether the length of the miter exceeds the miter limit.

◆ linear_gradient_mode

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

Specifies the direction of a linear gradient.

Namespace
xtd::drawing::drawing_2d
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.

◆ matrix_order

#include <xtd.drawing/include/xtd/drawing/drawing_2d/matrix_order.h>

Specifies the order for matrix transform operations.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Remarks
Matrix transform operations are not necessarily commutative. The order in which they are applied is important.
Enumerator
prepend 

The new operation is applied before the old operation.

append 

The new operation is applied after the old operation.

◆ pen_alignment

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

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

Namespace
xtd::drawing::drawing_2d
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/drawing_2d/pen_type.h>

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

Namespace
xtd::drawing::drawing_2d
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.

conical_gradient 

Specifies a conical gradient fill.

radial_gradient 

Specifies a radial 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.

format_16bpp_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.

format_16bpp_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.

format_24bpp_rgb 

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

format_32bpp_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.

format_1bpp_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.

format_4bpp_indexed 

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

format_8bpp_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.

format_16bpp_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.

format_32bpp_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.

format_16bpp_gray_scale 

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

format_48bpp_rgb 

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

format_64bpp_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.

format_32bpp_argb 

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

format_64bpp_argb 

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

◆ pixel_offset_mode

#include <xtd.drawing/include/xtd/drawing/drawing_2d/pixel_offset_mode.h>

Specifies how pixels are offset during rendering.

Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Remarks
By offsetting pixels during rendering, you can improve render quality at the cost of render speed.
Enumerator
invalid 

Specifies the default 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.

half 

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

◆ rotate_flip_type

enum class xtd::drawing::rotate_flip_type
strong

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

Specifies how much an image is rotated and the axis used to flip the image.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
The xtd::drawing::image::rotate_flip method rotates the image clockwise.
If you wish to draw on an image once it has been rotated, you should always retrieve a new graphics object from the image, otherwise an exception could occur.
Enumerator
rotate_none_flip_none 

Specifies no clockwise rotation and no flipping.

rotate_90_flip_none 

Specifies a 270-degree clockwise rotation followed by a horizontal and vertical flip.

rotate_180_flip_none 

Specifies a 180-degree clockwise rotation without flipping.

rotate_270_flip_none 

Specifies a 270-degree clockwise rotation without flipping.

rotate_none_flip_x 

Specifies no clockwise rotation followed by a horizontal flip.

rotate_90_flip_x 

Specifies a 90-degree clockwise rotation followed by a horizontal flip.

rotate_180_flip_x 

Specifies a 180-degree clockwise rotation followed by a horizontal flip.

rotate_270_flip_x 

Specifies a 270-degree clockwise rotation followed by a horizontal flip.

rotate_none_flip_y 

Specifies no clockwise rotation followed by a vertical flip.

rotate_90_flip_y 

Specifies a 90-degree clockwise rotation followed by a vertical flip.

rotate_180_flip_y 

Specifies a 180-degree clockwise rotation followed by a vertical flip.

rotate_270_flip_y 

Specifies a 270-degree clockwise rotation followed by a vertical flip.

rotate_none_flip_xy 

Specifies no clockwise rotation followed by a horizontal and vertical flip.

rotate_90_flip_xy 

Specifies a 90-degree clockwise rotation followed by a horizontal and vertical flip.

rotate_180_flip_xy 

Specifies a 180-degree clockwise rotation followed by a horizontal and vertical flip.

rotate_270_flip_xy 

Specifies a 90-degree clockwise rotation without flipping.

◆ smoothing_mode

#include <xtd.drawing/include/xtd/drawing/drawing_2d/smoothing_mode.h>

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.