xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::graphics Class Reference
Inheritance diagram for xtd::drawing::graphics:
xtd::object

Definition

Defines an object used to draw lines and curves. This class cannot be inherited.

Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
Inheritance
xtd::objectxtd::drawing::graphics
Namespace
xtd::drawing
Library
xtd.drawing
Examples
fill_ellipse.cpp, fill_rectangle.cpp, fill_rounded_rectangle.cpp, graph_control.cpp, graphics.cpp, hello_world_png.cpp, and image_converter.cpp.

Public Properties

xtd::drawing::region clip () const noexcept
 Gets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.
 
graphicsclip (const xtd::drawing::region value)
 Sets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.
 
xtd::drawing::rectangle_f clip_bounds () const noexcept
 Gets a xtd::drawing::rectangle_f structure that bounds the clipping region of this xtd::drawing::graphics.
 
xtd::drawing::drawing_2d::compositing_mode compositing_mode () const noexcept
 Gets a value that specifies how composited images are drawn to this xtd::drawing::graphics.
 
graphicscompositing_mode (xtd::drawing::drawing_2d::compositing_mode value)
 Sets a value that specifies how composited images are drawn to this xtd::drawing::graphics.
 
xtd::drawing::drawing_2d::compositing_quality compositing_quality () const noexcept
 Gets the rendering quality of composited images drawn to this xtd::drawing::graphics.
 
graphicscompositing_quality (xtd::drawing::drawing_2d::compositing_quality value)
 Sets the rendering quality of composited images drawn to this xtd::drawing::graphics.
 
float dpi_x () const noexcept
 Gets the horizontal resolution of this xtd::drawing::graphics.
 
float dpi_y () const noexcept
 Gets the vertical resolution of this xtd::drawing::graphics.
 
intptr handle () const noexcept
 Gets the handle device context that the graphics is bound to.
 
xtd::drawing::drawing_2d::interpolation_mode interpolation_mode () const noexcept
 Gets the interpolation mode associated with this xtd::drawing::graphics.
 
graphicsinterpolation_mode (xtd::drawing::drawing_2d::interpolation_mode value) noexcept
 Sets the interpolation mode associated with this xtd::drawing::graphics.
 
float page_scale () const noexcept
 Gets the scaling between world units and page units for this xtd::drawing::graphics.
 
graphicspage_scale (float value) noexcept
 Sets the scaling between world units and page units for this xtd::drawing::graphics.
 
xtd::drawing::graphics_unit page_unit () const noexcept
 Gets or sets the unit of measure used for page coordinates in this xtd::drawing::graphics.
 
graphicspage_unit (xtd::drawing::graphics_unit value)
 Sets or sets the unit of measure used for page coordinates in this xtd::drawing::graphics.
 
xtd::drawing::drawing_2d::pixel_offset_mode pixel_offset_mode () const noexcept
 Gets a value specifying how pixels are offset during rendering of this xtd::drawing::graphics.
 
graphicspixel_offset_mode (xtd::drawing::drawing_2d::pixel_offset_mode value) noexcept
 Sets a value specifying how pixels are offset during rendering of this xtd::drawing::graphics.
 
xtd::drawing::drawing_2d::smoothing_mode smoothing_mode () const noexcept
 Gets the rendering quality for this xtd::drawing::graphics.
 
graphicssmoothing_mode (xtd::drawing::drawing_2d::smoothing_mode value) noexcept
 Sets the rendering quality for this xtd::drawing::graphics.
 
int32 text_contrast () const noexcept
 Gets the gamma correction value for rendering text.
 
graphicstext_contrast (int32 value) noexcept
 Sets the gamma correction value for rendering text.
 
xtd::drawing::text::text_rendering_hint text_rendering_hint () const noexcept
 Gets the rendering mode for text associated with this xtd::drawing::graphics.
 
graphicstext_rendering_hint (xtd::drawing::text::text_rendering_hint value)
 Sets the rendering mode for text associated with this xtd::drawing::graphics.
 
xtd::drawing::drawing_2d::matrix transform () const noexcept
 Gets a copy of the geometric world transformation for this xtd::drawing::graphics.
 
graphicstransform (const xtd::drawing::drawing_2d::matrix &value) noexcept
 Sets a copy of the geometric world transformation for this xtd::drawing::graphics.
 
xtd::drawing::rectangle_f visible_clip_bounds () const noexcept
 Gets the bounding rectangle of the visible clipping region of this xtd::drawing::graphics.
 

Public Methods

void clear (const color &color)
 Clears the entire drawing surface and fills it with the specified background color.
 
void copy_from_graphics (const graphics &source, const xtd::drawing::point &upper_left_source, const xtd::drawing::point &upper_left_destination, const xtd::drawing::size &block_region_size)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the drawing surface of the xtd::drawing::graphics source to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_graphics (const graphics &source, const xtd::drawing::point &upper_left_source, const xtd::drawing::point &upper_left_destination, const xtd::drawing::size &block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the xtd::drawing::graphics source to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_graphics (const graphics &source, int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size &block_region_size)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the drawing surface of the xtd::drawing::graphics source to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_graphics (const graphics &source, int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size &block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the drawing surface of the xtd::drawing::graphics source to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_screen (const xtd::drawing::point &upper_left_source, const xtd::drawing::point &upper_left_destination, const xtd::drawing::size &block_region_size)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_screen (const xtd::drawing::point &upper_left_source, const xtd::drawing::point &upper_left_destination, const xtd::drawing::size &block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_screen (int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size &block_region_size)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the xtd::drawing::graphics.
 
void copy_from_screen (int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size &block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation)
 Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the xtd::drawing::graphics.
 
void draw_arc (const xtd::drawing::pen &pen, const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
 Draws an arc representing a portion of an ellipse specified by a xtd::drawing::rectangle structure.
 
void draw_arc (const xtd::drawing::pen &pen, const xtd::drawing::rectangle_f &rect, float start_angle, float sweep_angle)
 Draws an arc representing a portion of an ellipse specified by a xtd::drawing::rectangle structure.
 
void draw_arc (const xtd::drawing::pen &pen, int32 x, int32 y, int32 width, int32 height, int32 start_angle, int32 sweep_angle)
 Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
 
void draw_arc (const xtd::drawing::pen &pen, float x, float y, float width, float height, float start_angle, float sweep_angle)
 Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
 
void draw_bezier (const xtd::drawing::pen &pen, const xtd::drawing::point &pt1, const xtd::drawing::point &pt2, const xtd::drawing::point &pt3, const xtd::drawing::point &pt4)
 Draws a Bézier spline defined by four Point structures.
 
void draw_bezier (const xtd::drawing::pen &pen, const xtd::drawing::point_f &pt1, const xtd::drawing::point_f &pt2, const xtd::drawing::point_f &pt3, const xtd::drawing::point_f &pt4)
 Draws a Bézier spline defined by four Point structures.
 
void draw_bezier (const pen &pen, int32 x1, int32 y1, int32 x2, int32 y2, int32 x3, int32 y3, int32 x4, int32 y4)
 Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
 
void draw_bezier (const pen &pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
 
void draw_beziers (const pen &pen, const std::vector< xtd::drawing::point > &points)
 Draws a series of Bézier splines from an array of xtd::drawing::point structures.
 
void draw_beziers (const pen &pen, const std::vector< xtd::drawing::point_f > &points)
 Draws a series of Bézier splines from an array of xtd::drawing::point_f structures.
 
void draw_closed_curve (const pen &pen, const std::vector< xtd::drawing::point > &points)
 Draws a closed cardinal spline defined by an array of xtd::drawing::point structures.
 
void draw_closed_curve (const pen &pen, const std::vector< xtd::drawing::point_f > &points)
 Draws a closed cardinal spline defined by an array of xtd::drawing::point_f structures.
 
void draw_closed_curve (const pen &pen, const std::vector< xtd::drawing::point > &points, float tension)
 Draws a closed cardinal spline defined by an array of xtd::drawing::point structures using a specified tension.
 
void draw_closed_curve (const pen &pen, const std::vector< xtd::drawing::point_f > &points, float tension)
 Draws a closed cardinal spline defined by an array of xtd::drawing::point_f structures using a specified tension.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point > &points)
 Draws a cardinal spline through a specified array of xtd::drawing::point structures.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point_f > &points)
 Draws a cardinal spline through a specified array of xtd::drawing::point_f structures.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point > &points, float tension)
 Draws a cardinal spline through a specified array of xtd::drawing::point structures using a specified tension.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point_f > &points, float tension)
 Draws a cardinal spline through a specified array of xtd::drawing::point_f structures using a specified tension.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point > &points, size_t offset, size_t number_of_segments)
 Draws a cardinal spline through a specified array of xtd::drawing::point structures. The drawing begins offset from the beginning of the array.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point_f > &points, size_t offset, size_t number_of_segments)
 Draws a cardinal spline through a specified array of xtd::drawing::point_f structures. The drawing begins offset from the beginning of the array.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point > &points, size_t offset, size_t number_of_segments, float tension)
 Draws a cardinal spline through a specified array of xtd::drawing::point structures using a specified tension. The drawing begins offset from the beginning of the array.
 
void draw_curve (const pen &pen, const std::vector< xtd::drawing::point_f > &points, size_t offset, size_t number_of_segments, float tension)
 Draws a cardinal spline through a specified array of xtd::drawing::point_f structures using a specified tension. The drawing begins offset from the beginning of the array.
 
void draw_ellipse (const xtd::drawing::pen &pen, const xtd::drawing::rectangle &rect)
 Draws an ellipse specified by a bounding xtd::drawing::rectangle structure.
 
void draw_ellipse (const xtd::drawing::pen &pen, const xtd::drawing::rectangle_f &rect)
 Draws an ellipse specified by a bounding xtd::drawing::rectangle_f structure.
 
void draw_ellipse (const xtd::drawing::pen &pen, int32 x, int32 y, int32 width, int32 height)
 Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.
 
void draw_ellipse (const xtd::drawing::pen &pen, float x, float y, float width, float height)
 Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.
 
void draw_icon (const xtd::drawing::icon &icon, int32 x, int32 y)
 Draws the image represented by the specified xtd::drawing::icon at the specified coordinates.
 
void draw_icon (const xtd::drawing::icon &icon, const xtd::drawing::rectangle &rect)
 Draws the image represented by the specified xtd::drawing::icon within the area specified by a xtd::drawing::rectangle structure.
 
void draw_icon_unstretched (const xtd::drawing::icon &icon, const xtd::drawing::rectangle &rect)
 Draws the image represented by the specified Icon without scaling the image.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::rectangle &rect)
 Draws the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::rectangle_f &rect)
 Draws the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::point &point)
 Draws the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::point_f &point)
 Draws the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, int32 x, int32 y, int32 width, int32 height)
 Draws the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, float x, float y, float width, float height)
 Draws the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, int32 x, int32 y)
 Draws the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, float x, float y)
 Draws the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::rectangle &dest_rect, const xtd::drawing::rectangle &src_rect)
 Draws the specified protion of the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::rectangle_f &dest_rect, const xtd::drawing::rectangle_f &src_rect)
 Draws the specified protion of the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::point &dest_point, const xtd::drawing::rectangle &src_rect)
 Draws the specified protion of the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::point_f &dest_point, const xtd::drawing::rectangle_f &src_rect)
 Draws the specified protion of the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::rectangle &dest_rect, int32 src_x, int32 src_y, int32 srd_width, int32 src_height)
 Draws the specified protion of the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::rectangle_f &dest_rect, float src_x, float src_y, float srd_width, float src_height)
 Draws the specified protion of the specified xtd::drawing::image at the specified location and with the specified size.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::point &dest_point, int32 src_x, int32 src_y, int32 srd_width, int32 src_height)
 Draws the specified protion of the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image (const xtd::drawing::image &image, const xtd::drawing::point_f &dest_point, float src_x, float src_y, float srd_width, float src_height)
 Draws the specified protion of the specified xtd::drawing::image, using its original physical size, at the specified location.
 
void draw_image_unscaled (const xtd::drawing::image &image, const xtd::drawing::point &point)
 Draws a specified image using its original physical size at a specified location.
 
void draw_image_unscaled (const xtd::drawing::image &image, int32 x, int32 y)
 Draws a specified image using its original physical size at a specified location.
 
void draw_image_unscaled (const xtd::drawing::image &image, const xtd::drawing::rectangle &rect)
 Draws a specified image using its original physical size at a specified location.
 
void draw_image_unscaled (const xtd::drawing::image &image, int32 x, int32 y, int32 width, int32 height)
 Draws a specified image using its original physical size at a specified location.
 
void draw_image_unscaled_and_clipped (const xtd::drawing::image &image, const xtd::drawing::rectangle &rect)
 Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
 
void draw_line (const xtd::drawing::pen &pen, const xtd::drawing::point &pt1, const point &pt2)
 Draws a line connecting two xtd::drawing::point structures.
 
void draw_line (const xtd::drawing::pen &pen, const xtd::drawing::point_f &pt1, const point_f &pt2)
 Draws a line connecting two xtd::drawing::point_f structures.
 
void draw_line (const xtd::drawing::pen &pen, int32 x1, int32 y1, int32 x2, int32 y2)
 Draws a line connecting the two points specified by the coordinate pairs.
 
void draw_line (const xtd::drawing::pen &pen, float x1, float y1, float x2, float y2)
 Draws a line connecting the two points specified by the coordinate pairs.
 
void draw_lines (const xtd::drawing::pen &pen, const std::vector< xtd::drawing::point > &points)
 Draws a series of line segments that connect an array of xtd::drawing::point structures.
 
void draw_lines (const xtd::drawing::pen &pen, const std::vector< xtd::drawing::point_f > &points)
 Draws a series of line segments that connect an array of xtd::drawing::point_f structures.
 
void draw_path (const xtd::drawing::pen &pen, const xtd::drawing::drawing_2d::graphics_path &path)
 Draws a xtd::drawing::drawing_2d::graphics_path.
 
void draw_pie (const xtd::drawing::pen &pen, const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
 Draws a pie shape defined by an ellipse specified by a xtd::drawing::rectangle structure and two radial lines.
 
void draw_pie (const xtd::drawing::pen &pen, const xtd::drawing::rectangle_f &rect, float start_angle, float sweep_angle)
 Draws a pie shape defined by an ellipse specified by a xtd::drawing::rectangle_f structure and two radial lines.
 
void draw_pie (const xtd::drawing::pen &pen, int32 x, int32 y, int32 width, int32 height, int32 start_angle, int32 sweep_angle)
 Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
 
void draw_pie (const xtd::drawing::pen &pen, float x, float y, float width, float height, float start_angle, float sweep_angle)
 Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
 
void draw_polygon (const xtd::drawing::pen &pen, const std::vector< xtd::drawing::point > &points)
 Draws a polygon defined by an array of xtd::drawing::point structures.
 
void draw_polygon (const xtd::drawing::pen &pen, const std::vector< xtd::drawing::point_f > &points)
 Draws a polygon defined by an array of xtd::drawing::point_f structures.
 
void draw_point (const xtd::drawing::pen &pen, const xtd::drawing::point &point)
 Draws a point specified by the coordinate pairs.
 
void draw_point (const xtd::drawing::pen &pen, const xtd::drawing::point_f &point)
 Draws a point specified by the coordinate pairs.
 
void draw_point (const xtd::drawing::pen &pen, int32 x, int32 y)
 Draws a point specified by the coordinate pairs.
 
void draw_point (const xtd::drawing::pen &pen, float x, float y)
 Draws a point specified by the coordinate pairs.
 
void draw_rectangle (const xtd::drawing::pen &pen, const xtd::drawing::rectangle &rect)
 Draws a rectangle specified by a xtd::drawing::rectangle structure.
 
void draw_rectangle (const xtd::drawing::pen &pen, const xtd::drawing::rectangle_f &rect)
 Draws a rectangle specified by a xtd::drawing::rectangle_f structure.
 
void draw_rectangle (const xtd::drawing::pen &pen, int32 x, int32 y, int32 width, int32 height)
 Draws a rectangle specified by a coordinate pair, a width, and a height.
 
void draw_rectangle (const xtd::drawing::pen &pen, float x, float y, float width, float height)
 Draws a rectangle specified by a coordinate pair, a width, and a height.
 
void draw_rectangles (const xtd::drawing::pen &pen, const std::vector< xtd::drawing::rectangle > &rects)
 Draws a series of rectangles specified by xtd::drawing::rectangle structures.
 
void draw_rectangles (const xtd::drawing::pen &pen, const std::vector< xtd::drawing::rectangle_f > &rects)
 Draws a series of rectangles specified by xtd::drawing::rectangle_f structures.
 
void draw_rotated_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, const xtd::drawing::point_f &point, float angle)
 Draws the specified text string at the specified location with the specified xtd::drawing::brush, xtd::drawing::font objects and angle.
 
void draw_rotated_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, float x, float y, float angle)
 Draws the specified text string at the specified location with the specified xtd::drawing::brush, xtd::drawing::font objects and angle.
 
void draw_rounded_rectangle (const xtd::drawing::pen &pen, const xtd::drawing::rectangle &rect, int32 radius)
 Draws a rounded rectangle specified by a xtd::drawing::rectangle structure, and radius.
 
void draw_rounded_rectangle (const xtd::drawing::pen &pen, const xtd::drawing::rectangle_f &rect, float radius)
 Draws a rounded rectangle specified by a xtd::drawing::rectangle_f structure, and radius.
 
void draw_rounded_rectangle (const xtd::drawing::pen &pen, int32 x, int32 y, int32 width, int32 height, int32 radius)
 Draws a rounded rectangle specified by a coordinate pair, a width, and a height, and radius.
 
void draw_rounded_rectangle (const xtd::drawing::pen &pen, float x, float y, float width, float height, float radius)
 Draws a rounded rectangle specified by a coordinate pair, a width, a height, and radius.
 
void draw_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &layout_rectangle)
 Draws the specified text string at the specified rectangle with the specified xtd::drawing::brush and xtd::drawing::font objects.
 
void draw_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &layout_rectangle, const xtd::drawing::string_format &format)
 Draws the specified text string at the specified rectangle with the specified xtd::drawing::brush and xtd::drawing::font objects using the formatting attributes of the specified xtd::drawing::string_format.
 
void draw_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, const xtd::drawing::point_f &point)
 Draws the specified text string at the specified location with the specified xtd::drawing::brush and xtd::drawing::font objects.
 
void draw_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, const xtd::drawing::point_f &point, const xtd::drawing::string_format &format)
 Draws the specified text string at the specified location with the specified xtd::drawing::brush and xtd::drawing::font objects using the formatting attributes of the specified xtd::drawing::string_format.
 
void draw_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, float x, float y)
 Draws the specified text string at the specified location with the specified xtd::drawing::brush and xtd::drawing::font objects.
 
void draw_string (const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, float x, float y, const xtd::drawing::string_format &format)
 Draws the specified text string at the specified location with the specified xtd::drawing::brush and xtd::drawing::font objects using the formatting attributes of the specified xtd::drawing::string_format.
 
void exclude_clip (const xtd::drawing::region &region)
 Updates the clip region of this xtd::drawing::graphics to exclude the area specified by a xtd::drawing::region.
 
void exclude_clip (const xtd::drawing::rectangle &rect)
 Updates the clip region of this xtd::drawing::graphics to exclude the area specified by a xtd::drawing::rectangle.
 
void exclude_clip (const xtd::drawing::rectangle_f &rect)
 Updates the clip region of this xtd::drawing::graphics to exclude the area specified by a xtd::drawing::rectangle_f.
 
void fill_closed_curve (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point > &points)
 Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point structures.
 
void fill_closed_curve (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point_f > &points)
 Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point_f structures.
 
void fill_closed_curve (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point > &points, xtd::drawing::drawing_2d::fill_mode fill_mode)
 Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point structures using the specified fill mode.
 
void fill_closed_curve (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point_f > &points, xtd::drawing::drawing_2d::fill_mode fill_mode)
 Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point_f structures using the specified fill mode.
 
void fill_closed_curve (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point > &points, xtd::drawing::drawing_2d::fill_mode fill_mode, float tension)
 Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point structures using the specified fill mode and tension.
 
void fill_closed_curve (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point_f > &points, xtd::drawing::drawing_2d::fill_mode fill_mode, float tension)
 Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point_f structures using the specified fill mode and tension.
 
void fill_ellipse (const xtd::drawing::brush &brush, const xtd::drawing::rectangle &rect)
 Fills the interior of an ellipse defined by a bounding rectangle specified by a xtd::drawing::rectangle structure.
 
void fill_ellipse (const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &rect)
 Fills the interior of an ellipse defined by a bounding rectangle specified by a xtd::drawing::rectangle_f structure.
 
void fill_ellipse (const xtd::drawing::brush &brush, int32 x, int32 y, int32 width, int32 height)
 Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
 
void fill_ellipse (const xtd::drawing::brush &brush, float x, float y, float width, float height)
 Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
 
void fill_path (const xtd::drawing::brush &brush, const xtd::drawing::drawing_2d::graphics_path &path)
 Fills the interior of a xtd::drawing::drawing_2d::graphics_path.
 
void fill_pie (const xtd::drawing::brush &brush, const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
 Fills the interior of a pie section defined by an ellipse specified by a xtd::drawing::rectangle structure and two radial lines.
 
void fill_pie (const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &rect, float start_angle, float sweep_angle)
 Fills the interior of a pie section defined by an ellipse specified by a xtd::drawing::rectangle_f structure and two radial lines.
 
void fill_pie (const xtd::drawing::brush &brush, int32 x, int32 y, int32 width, int32 height, int32 start_angle, int32 sweep_angle)
 Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines.
 
void fill_pie (const xtd::drawing::brush &brush, float x, float y, float width, float height, float start_angle, float sweep_angle)
 Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines.
 
void fill_polygon (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point > &points)
 Fills the interior of a polygon defined by an array of points specified by xtd::drawing::point structures.
 
void fill_polygon (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point_f > &points)
 Fills the interior of a polygon defined by an array of points specified by xtd::drawing::point_f structures.
 
void fill_polygon (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point > &points, xtd::drawing::drawing_2d::fill_mode fill_mode)
 Fills the interior of a polygon defined by an array of points specified by xtd::drawing::point structures using the specified fill mode.
 
void fill_polygon (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::point_f > &points, xtd::drawing::drawing_2d::fill_mode fill_mode)
 Fills the interior of a polygon defined by an array of points specified by xtd::drawing::point_f structures using the specified fill mode.
 
void fill_rectangle (const xtd::drawing::brush &brush, const xtd::drawing::rectangle &rect)
 Fills the interior of a rectangle specified by a xtd::drawing::rectangle structure.
 
void fill_rectangle (const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &rect)
 Fills the interior of a rectangle specified by a xtd::drawing::rectangle_f structure.
 
void fill_rectangle (const xtd::drawing::brush &brush, int32 x, int32 y, int32 width, int32 height)
 Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
 
void fill_rectangle (const xtd::drawing::brush &brush, float x, float y, float width, float height)
 Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
 
void fill_rectangles (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::rectangle > &rects)
 Fills the interiors of a series of rectangles specified by xtd::drawing::rectangle structures.
 
void fill_rectangles (const xtd::drawing::brush &brush, const std::vector< xtd::drawing::rectangle_f > &rects)
 Fills the interiors of a series of rectangles specified by xtd::drawing::rectangle_f structures.
 
void fill_region (const xtd::drawing::brush &brush, const xtd::drawing::region &region)
 Fills the interior of a xtd::drawing::region.
 
void fill_rounded_rectangle (const xtd::drawing::brush &brush, const xtd::drawing::rectangle &rect, int32 radius)
 Fills the interior of a rounded rectangle specified by a xtd::drawing::rectangle structure.
 
void fill_rounded_rectangle (const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &rect, float radius)
 Fills the interior of a rounded rectangle specified by a xtd::drawing::rectangle_f structure.
 
void fill_rounded_rectangle (const xtd::drawing::brush &brush, int32 x, int32 y, int32 width, int32 height, int32 radius)
 Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height, and a radius.
 
void fill_rounded_rectangle (const xtd::drawing::brush &brush, float x, float y, float width, float height, float radius)
 Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height, and a radius.
 
void flush ()
 Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
 
void flush (xtd::drawing::drawing_2d::flush_intention intention)
 Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.
 
intptr get_hdc () const
 Gets the handle to the device context associated with this xtd::drawing::graphics.
 
xtd::drawing::color get_nearest_color (const xtd::drawing::color &color) const
 Gets the nearest color to the specified xtd::drawing::color structure.
 
void intersect_clip (const xtd::drawing::region &region)
 Updates the clip region of this xtd::drawing::graphics to the intersection of the current clip region and the specified xtd::drawing::region.
 
void intersect_clip (const xtd::drawing::rectangle &rect)
 Updates the clip region of this xtd::drawing::graphics to the intersection of the current clip region and the specified xtd::drawing::rectangle structure.
 
void intersect_clip (const xtd::drawing::rectangle_f &rect)
 Updates the clip region of this xtd::drawing::graphics to the intersection of the current clip region and the specified xtd::drawing::rectangle_f structure.
 
bool is_visible (const xtd::drawing::rectangle &rect)
 Indicates whether the rectangle specified by a xtd::drawing::rectangle structure is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (const xtd::drawing::rectangle_f &rect)
 Indicates whether the rectangle specified by a xtd::drawing::rectangle_f structure is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (int32 x, int32 y, int32 width, int32 height)
 Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (float x, float y, float width, float height)
 Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (const xtd::drawing::point &point)
 ndicates whether the specified xtd::drawing::point structure is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (const xtd::drawing::point_f &point)
 ndicates whether the specified xtd::drawing::point_f structure is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (int32 x, int32 y)
 Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this xtd::drawing::graphics.
 
bool is_visible (float x, float y)
 Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this xtd::drawing::graphics.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font)
 Measures the specified string when drawn with the specified xtd::drawing::font.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font, const xtd::drawing::size_f &layout_area)
 Measures the specified string when drawn with the specified xtd::drawing::font within the specified layout area.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font, int32 width)
 Measures the specified string when drawn with the specified xtd::drawing::font.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font, const xtd::drawing::point_f &origin, const xtd::drawing::string_format &format)
 Measures the specified string when drawn with the specified xtd::drawing::font and formatted with the specified xtd::drawing::string_format.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font, const xtd::drawing::size_f &layout_area, const xtd::drawing::string_format &format)
 Measures the specified string when drawn with the specified xtd::drawing::font and formatted with the specified xtd::drawing::string_format.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font, int32 width, const xtd::drawing::string_format &format)
 Measures the specified string when drawn with the specified xtd::drawing::font and formatted with the specified xtd::drawing::string_format.
 
size_f measure_string (const xtd::string &text, const xtd::drawing::font &font, const xtd::drawing::size_f &layout_area, const xtd::drawing::string_format &format, size_t characters_fitted, size_t lines_filled)
 Measures the specified string when drawn with the specified xtd::drawing::font and formatted with the specified xtd::drawing::string_format.
 
void multiply_transform (const xtd::drawing::drawing_2d::matrix &matrix)
 Multiplies the world transformation of this xtd::drawing::graphics and specified the xtd::drawing::drawing_2d::matrix.
 
void multiply_transform (const xtd::drawing::drawing_2d::matrix &matrix, xtd::drawing::drawing_2d::matrix_order order)
 Multiplies the world transformation of this xtd::drawing::graphics and specified the xtd::drawing::drawing_2d::matrix with specified order.
 
void release_hdc (intptr hdc)
 Releases a device context handle obtained by a previous call to the xtd::drawing::graphics::get_hdc() method of this xtd::drawing::graphics.
 
void reset_clip ()
 Resets the clip region of this xtd::drawing::graphics to an infinite region.
 
void reset_transform ()
 Resets the world transformation matrix of this xtd::drawing::graphics to the identity matrix.
 
void restore (const xtd::drawing::drawing_2d::graphics_state &gstate)
 Restores the state of this xtd::drawing::graphics to the state represented by a xtd::drawing::drawing_2d::graphics_state.
 
void rotate_transform (float angle)
 Applies the specified rotation to the transformation matrix of this xtd::drawing::graphics.
 
void rotate_transform (float angle, xtd::drawing::drawing_2d::matrix_order order)
 Applies the specified rotation to the transformation matrix of this xtd::drawing::graphics in the specified order.
 
xtd::drawing::drawing_2d::graphics_state save ()
 Saves the current state of this xtd::drawing::graphics and identifies the saved state with a xtd::drawing::drawing_2d::graphics_state.
 
void scale_transform (float sx, float sy)
 Applies the specified scaling operation to the transformation matrix of this xtd::drawing::graphics by prepending it to the object's transformation matrix.
 
void scale_transform (float sx, float sy, xtd::drawing::drawing_2d::matrix_order order)
 Applies the specified scaling operation to the transformation matrix of this xtd::drawing::graphics in the specified order.
 
void translate_clip (int32 dx, int32 dy)
 Translates the clipping region of this xtd::drawing::graphics by specified amounts in the horizontal and vertical directions.
 
void translate_clip (float dx, float dy)
 Translates the clipping region of this xtd::drawing::graphics by specified amounts in the horizontal and vertical directions.
 
void translate_transform (float dx, float dy)
 Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this xtd::drawing::graphics.
 
void translate_transform (float dx, float dy, xtd::drawing::drawing_2d::matrix_order order)
 Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this xtd::drawing::graphics in the specified order.
 
xtd::string trim_string (const xtd::string &text, const xtd::drawing::font &font, float width, xtd::drawing::string_trimming trimming)
 Trims the specified string for a specified width with the specified xtd::drawing::font and with the specified xtd::drawing::string_trimming.
 
xtd::string to_string () const noexcept override
 Returns a xtd::string that represents the current object.
 

Public Static Methods

static graphics from_hdc (intptr hdc)
 Creates a new xtd::drawing::graphics from the specified handle to a device context.
 
static graphics from_hdc (intptr hdc, intptr hdevice)
 Creates a new xtd::drawing::graphics from the specified handle to a device contextand handle to a device.
 
static graphics from_hwnd (intptr hwnd)
 Creates a new xtd::drawing::graphics from the specified handle to a window.
 
static graphics from_image (const xtd::drawing::image &image)
 Creates a new xtd::drawing::graphics from the specified xtd::drawing::image.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

The documentation for this class was generated from the following file: