Defines an object used to draw lines and curves. This class cannot be inherited.
Public Properties | |
xtd::drawing::region | clip () const noexcept |
Gets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics. | |
graphics & | clip (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. | |
graphics & | compositing_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. | |
graphics & | compositing_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. | |
graphics & | interpolation_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. | |
graphics & | page_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. | |
graphics & | page_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. | |
graphics & | pixel_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. | |
graphics & | smoothing_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. | |
graphics & | text_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. | |
graphics & | text_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. | |
graphics & | transform (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 ®ion) |
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 ®ion) |
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 ®ion) |
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. | |
|
noexcept |
Gets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.
graphics & xtd::drawing::graphics::clip | ( | const xtd::drawing::region | value | ) |
Sets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.
value | A xtd::drawing::region that limits the portion of this xtd::drawing::graphics that is currently available for drawing. |
|
noexcept |
Gets a xtd::drawing::rectangle_f structure that bounds the clipping region of this xtd::drawing::graphics.
|
noexcept |
Gets a value that specifies how composited images are drawn to this xtd::drawing::graphics.
graphics & xtd::drawing::graphics::compositing_mode | ( | xtd::drawing::drawing_2d::compositing_mode | value | ) |
Sets a value that specifies how composited images are drawn to this xtd::drawing::graphics.
value | This property specifies a member of the CompositingMode enumeration. The default is SourceOver. |
|
noexcept |
Gets the rendering quality of composited images drawn to this xtd::drawing::graphics.
graphics & xtd::drawing::graphics::compositing_quality | ( | xtd::drawing::drawing_2d::compositing_quality | value | ) |
Sets the rendering quality of composited images drawn to this xtd::drawing::graphics.
value | This property specifies a member of the xtd::drawing::drawing_2d::compositing_quality enumeration. The xtd::drawing::drawing_2d::compositing_quality::default_value is Default. |
|
noexcept |
Gets the horizontal resolution of this xtd::drawing::graphics.
|
noexcept |
Gets the vertical resolution of this xtd::drawing::graphics.
|
noexcept |
Gets the handle device context that the graphics is bound to.
|
noexcept |
Gets the interpolation mode associated with this xtd::drawing::graphics.
|
noexcept |
Sets the interpolation mode associated with this xtd::drawing::graphics.
value | One of the xtd::drawing::drawing_2d::interpolation_mode values. |
|
noexcept |
Gets the scaling between world units and page units for this xtd::drawing::graphics.
|
noexcept |
Sets the scaling between world units and page units for this xtd::drawing::graphics.
value | This property specifies a value for the scaling between world units and page units for this xtd::drawing::graphics. |
|
noexcept |
Gets or sets the unit of measure used for page coordinates in this xtd::drawing::graphics.
graphics & xtd::drawing::graphics::page_unit | ( | xtd::drawing::graphics_unit | value | ) |
Sets or sets the unit of measure used for page coordinates in this xtd::drawing::graphics.
value | One of the xtd::drawing::graphics_unit values other than xtd::drawing::graphics_unit::world. |
xtd::argument_exception | xtd::drawing::graphics::page_unit is set to xtd::drawing::graphics_unit::world, which is not a physical unit. |
|
noexcept |
Gets a value specifying how pixels are offset during rendering of this xtd::drawing::graphics.
|
noexcept |
Sets a value specifying how pixels are offset during rendering of this xtd::drawing::graphics.
value | This property specifies a member of the xtd::drawing::drawing_2d::pixel_offset_mode enumeration. |
|
noexcept |
Gets the rendering quality for this xtd::drawing::graphics.
|
noexcept |
Sets the rendering quality for this xtd::drawing::graphics.
value | One of the xtd::drawing::drawing_2d::smoothing_mode values. |
|
noexcept |
Gets the gamma correction value for rendering text.
Sets the gamma correction value for rendering text.
value | The gamma correction value used for rendering antialiased and ClearType text. |
|
noexcept |
Gets the rendering mode for text associated with this xtd::drawing::graphics.
graphics & xtd::drawing::graphics::text_rendering_hint | ( | xtd::drawing::text::text_rendering_hint | value | ) |
Sets the rendering mode for text associated with this xtd::drawing::graphics.
value | One of the xtd::drawing::graphics::text_rendering_hint values. |
|
noexcept |
Gets a copy of the geometric world transformation for this xtd::drawing::graphics.
|
noexcept |
Sets a copy of the geometric world transformation for this xtd::drawing::graphics.
value | A copy of the xtd::drawing::drawing_2d::matrix that represents the geometric world transformation for this xtd::drawing::graphics. |
|
noexcept |
Gets the bounding rectangle of the visible clipping region of this xtd::drawing::graphics.
void xtd::drawing::graphics::clear | ( | const color & | color | ) |
Clears the entire drawing surface and fills it with the specified background color.
color | xtd::drawing::color structure that represents the background color of the drawing surface. |
void xtd::drawing::graphics::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.
source | The drawing surface of the xtd::drawing::graphics source. |
upper_left_source | The point at the upper-left corner of the source rectangle. |
upper_left_destination | The point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
void xtd::drawing::graphics::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.
source | The drawing surface of the xtd::drawing::graphics source. |
upper_left_source | The point at the upper-left corner of the source rectangle. |
upper_left_destination | The point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
copy_pixel_operation | One of the xtd::drawing::graphics::copy_pixel_operation values. |
void xtd::drawing::graphics::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.
source | The drawing surface of the xtd::drawing::graphics source. |
source_x | The x-coordinate of the point at the upper-left corner of the source rectangle. |
source_y | The y-coordinate of the point at the upper-left corner of the source rectangle. |
destination_x | The x-coordinate of the point at the upper-left corner of the destination rectangle. |
destination_y | The y-coordinate of the point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
void xtd::drawing::graphics::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.
source | The drawing surface of the xtd::drawing::graphics source. |
source_x | The x-coordinate of the point at the upper-left corner of the source rectangle. |
source_y | The y-coordinate of the point at the upper-left corner of the source rectangle. |
destination_x | The x-coordinate of the point at the upper-left corner of the destination rectangle. |
destination_y | The y-coordinate of the point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
copy_pixel_operation | One of the xtd::drawing::graphics::copy_pixel_operation values. |
void xtd::drawing::graphics::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.
upper_left_source | The point at the upper-left corner of the source rectangle. |
upper_left_destination | The point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
void xtd::drawing::graphics::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.
upper_left_source | The point at the upper-left corner of the source rectangle. |
upper_left_destination | The point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
copy_pixel_operation | One of the xtd::drawing::graphics::copy_pixel_operation values. |
void xtd::drawing::graphics::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.
source_x | The x-coordinate of the point at the upper-left corner of the source rectangle. |
source_y | The y-coordinate of the point at the upper-left corner of the source rectangle. |
destination_x | The x-coordinate of the point at the upper-left corner of the destination rectangle. |
destination_y | The y-coordinate of the point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
void xtd::drawing::graphics::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.
source_x | The x-coordinate of the point at the upper-left corner of the source rectangle. |
source_y | The y-coordinate of the point at the upper-left corner of the source rectangle. |
destination_x | The x-coordinate of the point at the upper-left corner of the destination rectangle. |
destination_y | The y-coordinate of the point at the upper-left corner of the destination rectangle. |
block_region_size | The size of the area to be transferred. |
copy_pixel_operation | One of the xtd::drawing::graphics::copy_pixel_operation values. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the arc. |
rect | xtd::drawing::rectangle structure that defines the boundaries of the ellipse. |
start_angle | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to ending point of the arc. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the arc. |
rect | xtd::drawing::rectangle_f structure that defines the boundaries of the ellipse. |
start_angle | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to ending point of the arc. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the arc. |
x | The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
y | The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
width | Width of the rectangle that defines the ellipse. |
height | Height of the rectangle that defines the ellipse. |
start_angle | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to ending point of the arc. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the arc. |
x | The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
y | The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
width | Width of the rectangle that defines the ellipse. |
height | Height of the rectangle that defines the ellipse. |
start_angle | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to ending point of the arc. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen structure that determines the color, width, and style of the curve. |
pt1 | xtd::drawing::point structure that represents the starting point of the curve. |
pt2 | xtd::drawing::point structure that represents the first control point for the curve. |
pt3 | xtd::drawing::point structure that represents the second control point for the curve. |
pt4 | xtd::drawing::point structure that represents the ending point of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen structure that determines the color, width, and style of the curve. |
pt1 | xtd::drawing::point structure that represents the starting point of the curve. |
pt2 | xtd::drawing::point structure that represents the first control point for the curve. |
pt3 | xtd::drawing::point structure that represents the second control point for the curve. |
pt4 | xtd::drawing::point structure that represents the ending point of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen structure that determines the color, width, and style of the curve. |
x1 | The x-coordinate of the starting point of the curve. |
y1 | The y-coordinate of the starting point of the curve. |
x2 | The x-coordinate of the first control point of the curve. |
y2 | The y-coordinate of the first control point of the curve. |
x3 | The x-coordinate of the second control point of the curve. |
y3 | The y-coordinate of the second control point of the curve. |
x4 | The x-coordinate of the ending point of the curve. |
y4 | The y-coordinate of the ending point of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen structure that determines the color, width, and style of the curve. |
x1 | The x-coordinate of the starting point of the curve. |
y1 | The y-coordinate of the starting point of the curve. |
x2 | The x-coordinate of the first control point of the curve. |
y2 | The y-coordinate of the first control point of the curve. |
x3 | The x-coordinate of the second control point of the curve. |
y3 | The y-coordinate of the second control point of the curve. |
x4 | The x-coordinate of the ending point of the curve. |
y4 | The y-coordinate of the ending point of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that represent the points that determine the curve. The number of points in the array should be a multiple of 3 plus 1, such as 4, 7, or 10. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that represent the points that determine the curve. The number of points in the array should be a multiple of 3 plus 1, such as 4, 7, or 10. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that define the spline. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that define the spline. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that define the spline. |
tension | alue greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that define the spline. |
tension | alue greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that define the spline. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that define the spline. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that define the spline. |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that define the spline. |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that define the spline. |
offset | Offset from the first element in the array of the points parameter to the starting point in the curve. |
number_of_segments | Number of segments after the starting point to include in the curve. |
void xtd::drawing::graphics::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.
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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that define the spline. |
offset | Offset from the first element in the array of the points parameter to the starting point in the curve. |
number_of_segments | Number of segments after the starting point to include in the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point structures that define the spline. |
offset | Offset from the first element in the array of the points parameter to the starting point in the curve. |
number_of_segments | Number of segments after the starting point to include in the curve. |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the curve. |
points | Array of xtd::drawing::point_f structures that define the spline. |
offset | Offset from the first element in the array of the points parameter to the starting point in the curve. |
number_of_segments | Number of segments after the starting point to include in the curve. |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::draw_ellipse | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::rectangle & | rect | ||
) |
Draws an ellipse specified by a bounding xtd::drawing::rectangle structure.
pen | xtd::drawing::pen that determines the color, width, and style of the ellipse. |
rect | xtd::drawing::rectangle structure that defines the boundaries of the ellipse. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the ellipse. |
rect | xtd::drawing::rectangle_f structure that defines the boundaries of the ellipse. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the ellipse. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | Width of the bounding rectangle that defines the ellipse. |
height | Height of the bounding rectangle that defines the ellipse. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the ellipse. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | Width of the bounding rectangle that defines the ellipse. |
height | Height of the bounding rectangle that defines the ellipse. |
void xtd::drawing::graphics::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.
icon | xtd::drawing::icon to draw. |
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
icon | xtd::drawing::icon to draw. |
rect | xtd::drawing::rectangle structure that specifies the location and size of the resulting image on the display surface. The image contained in the icon parameter is scaled to the dimensions of this rectangular area. |
void xtd::drawing::graphics::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.
icon | xtd::drawing::icon to draw. |
rect | xtd::drawing::rectangle structure that specifies the location and size of the resulting image. The image is not scaled to fit this rectangle, but retains its original size. If the image is larger than the rectangle, it is clipped to fit inside it. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle structure that specifies the location and size of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle_f structure that specifies the location and size of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point structure that represents the location of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point_f structure that represents the location of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
width | Width of the drawn image. |
height | Height of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
width | Width of the drawn image. |
height | Height of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle structure that specifies the location and size of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle_f structure that specifies the location and size of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point structure that represents the location of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point_f structure that represents the location of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle structure that specifies the location and size of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle_f structure that specifies the location and size of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point structure that represents the location of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point_f structure that represents the location of the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
point | xtd::drawing::point structure that specifies the upper-left corner of the drawn image. |
void xtd::drawing::graphics::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.
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
image | xtd::drawing::image to draw. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | xtd::drawing::rectangle that specifies the upper-left corner of the drawn image. The xtd::drawing::rectangle::x and xtd::drawing::rectangle::y properties of the rectangle specify the upper-left corner. The xtd::drawing::rectangle::width and xtd::drawing::rectangle::height properties are ignored. |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
x | The x-coordinate of the upper-left corner of the drawn image. |
y | The y-coordinate of the upper-left corner of the drawn image. |
width | not used. |
height | not used |
void xtd::drawing::graphics::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.
image | xtd::drawing::image to draw. |
rect | The xtd::drawing::rectangle in which to draw the image. |
void xtd::drawing::graphics::draw_line | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::point & | pt1, | ||
const point & | pt2 | ||
) |
Draws a line connecting two xtd::drawing::point structures.
pen | xtd::drawing::pen that determines the color, width, and style of the line. |
pt1 | xtd::drawing::point structure that represents the first point to connect. |
pt2 | xtd::drawing::point structure that represents the second point to connect. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the line. |
pt1 | xtd::drawing::point_f structure that represents the first point to connect. |
pt2 | xtd::drawing::point_f structure that represents the second point to connect. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the line. |
x1 | The x-coordinate of the first point. |
y1 | The y-coordinate of the first point. |
x2 | The x-coordinate of the second point. |
y2 | The y-coordinate of the second point. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the line. |
x1 | The x-coordinate of the first point. |
y1 | The y-coordinate of the first point. |
x2 | The x-coordinate of the second point. |
y2 | The y-coordinate of the second point. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the line segments. |
points | Array of xtd::drawing::point structures that represent the points to connect. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the line segments. |
points | Array of xtd::drawing::point_f structures that represent the points to connect. |
void xtd::drawing::graphics::draw_path | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::drawing_2d::graphics_path & | path | ||
) |
Draws a xtd::drawing::drawing_2d::graphics_path.
pen | xtd::drawing::pen that determines the color, width, and style of the path. |
path | xtd::drawing::drawing_2d::graphics_path to draw. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the pie shape. |
rect | xtd::drawing::rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the pie shape. |
rect | xtd::drawing::rectangle_f structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the pie shape. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
width | Width of the bounding rectangle that defines the ellipse from which the pie shape comes. |
heught | Height of the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the pie shape. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
width | Width of the bounding rectangle that defines the ellipse from which the pie shape comes. |
heught | Height of the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the polygon. |
points | Array of xtd::drawing::point structures that represent the vertices of the polygon. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the polygon. |
points | Array of xtd::drawing::point_f structures that represent the vertices of the polygon. |
void xtd::drawing::graphics::draw_point | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::point & | point | ||
) |
Draws a point specified by the coordinate pairs.
pen | xtd::drawing::pen that determines the color, width, and style of the point. |
point | xtd::drawing::point structure that represents the point. |
void xtd::drawing::graphics::draw_point | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::point_f & | point | ||
) |
Draws a point specified by the coordinate pairs.
pen | xtd::drawing::pen that determines the color, width, and style of the point. |
point | xtd::drawing::point_f structure that represents the point. |
void xtd::drawing::graphics::draw_point | ( | const xtd::drawing::pen & | pen, |
int32 | x, | ||
int32 | y | ||
) |
Draws a point specified by the coordinate pairs.
pen | xtd::drawing::pen that determines the color, width, and style of the point. |
x1 | The x-coordinate of the point. |
y1 | The y-coordinate of the point. |
void xtd::drawing::graphics::draw_point | ( | const xtd::drawing::pen & | pen, |
float | x, | ||
float | y | ||
) |
Draws a point specified by the coordinate pairs.
pen | xtd::drawing::pen that determines the color, width, and style of the point. |
x1 | The x-coordinate of the point. |
y1 | The y-coordinate of the point. |
void xtd::drawing::graphics::draw_rectangle | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::rectangle & | rect | ||
) |
Draws a rectangle specified by a xtd::drawing::rectangle structure.
pen | A xtd::drawing::pen that determines the color, width, and style of the rectangle. |
rect | A xtd::drawing::rectangle structure that represents the rectangle to draw. |
void xtd::drawing::graphics::draw_rectangle | ( | const xtd::drawing::pen & | pen, |
const xtd::drawing::rectangle_f & | rect | ||
) |
Draws a rectangle specified by a xtd::drawing::rectangle_f structure.
pen | A xtd::drawing::pen that determines the color, width, and style of the rectangle. |
rect | A xtd::drawing::rectangle_f structure that represents the rectangle to draw. |
void xtd::drawing::graphics::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.
pen | A xtd::drawing::pen that determines the color, width, and style of the rectangle. |
x | The x-coordinate of the upper-left corner of the rectangle to draw. |
y | The y-coordinate of the upper-left corner of the rectangle to draw. |
width | The width of the rectangle to draw. |
height | The height of the rectangle to draw. |
void xtd::drawing::graphics::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.
pen | A xtd::drawing::pen that determines the color, width, and style of the rectangle. |
x | The x-coordinate of the upper-left corner of the rectangle to draw. |
y | The y-coordinate of the upper-left corner of the rectangle to draw. |
width | The width of the rectangle to draw. |
height | The height of the rectangle to draw. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the outlines of the rectangles. |
rects | Array of xtd::drawing::rectangle structures that represent the rectangles to draw. |
void xtd::drawing::graphics::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.
pen | xtd::drawing::pen that determines the color, width, and style of the outlines of the rectangles. |
rects | Array of xtd::drawing::rectangle_f structures that represent the rectangles to draw. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
point | xtd::drawing::point_f structure that specifies the upper-left corner of the drawn text. |
angle | The angle, measured in degrees clockwise from the x-axis, of the text's orientation line. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
x | The x-coordinate of the upper-left corner of the drawn text. |
y | The y-coordinate of the upper-left corner of the drawn text. |
angle | The angle, measured in degrees clockwise from the x-axis, of the text's orientation line. |
void xtd::drawing::graphics::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.
pen | A xtd::drawing::pen that determines the color, width, and style of the rounded rectangle. |
rect | A xtd::drawing::rectangle structure that represents the rounded rectangle to draw. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
pen | A xtd::drawing::pen that determines the color, width, and style of the rounded rectangle. |
rect | A xtd::drawing::rectangle_f structure that represents the rounded rectangle to draw. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
pen | A xtd::drawing::pen that determines the color, width, and style of the rounded rectangle. |
x | The x-coordinate of the upper-left corner of the rounded rectangle to draw. |
y | The y-coordinate of the upper-left corner of the rounded rectangle to draw. |
width | The width of the rounded rectangle to draw. |
height | The height of the rounded rectangle to draw. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
pen | A xtd::drawing::pen that determines the color, width, and style of the rounded rectangle. |
x | The x-coordinate of the upper-left corner of the rounded rectangle to draw. |
y | The y-coordinate of the upper-left corner of the rounded rectangle to draw. |
width | The width of the rounded rectangle to draw. |
height | The height of the rounded rectangle to draw. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
layout_rectangle | xtd::drawing::rectangle_f structure that specifies the location of the drawn text. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
layout_rectangle | xtd::drawing::rectangle_f structure that specifies the location of the drawn text. |
format | xtd::drawing::string_format that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
point | xtd::drawing::point_f structure that specifies the upper-left corner of the drawn text. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
point | xtd::drawing::point_f structure that specifies the upper-left corner of the drawn text. |
format | xtd::drawing::string_format that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
x | The x-coordinate of the upper-left corner of the drawn text. |
y | The y-coordinate of the upper-left corner of the drawn text. |
void xtd::drawing::graphics::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.
s | String to draw. |
font | xtd::drawing::font that defines the text format of the string. |
brush | xtd::drawing::brush that determines the color and texture of the drawn text. |
x | The x-coordinate of the upper-left corner of the drawn text. |
y | The y-coordinate of the upper-left corner of the drawn text. |
format | xtd::drawing::string_format that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
void xtd::drawing::graphics::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.
region | xtd::drawing::region that specifies the region to exclude from the clip region. |
void xtd::drawing::graphics::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.
rect | xtd::drawing::rectangle that specifies the rectangle to exclude from the clip region. |
void xtd::drawing::graphics::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.
rect | xtd::drawing::rectangle_f that specifies the rectangle to exclude from the clip region. |
void xtd::drawing::graphics::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.
brush | A xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point structures that define the spline. |
void xtd::drawing::graphics::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.
brush | A xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point_f structures that define the spline. |
void xtd::drawing::graphics::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.
brush | A xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point structures that define the spline. |
fill_mode | Member of the xtd::drawing::drawing_2d::fill_mode enumeration that determines how the curve is filled. |
void xtd::drawing::graphics::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.
brush | A xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point_f structures that define the spline. |
fill_mode | Member of the xtd::drawing::drawing_2d::fill_mode enumeration that determines how the curve is filled. |
void xtd::drawing::graphics::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.
brush | A xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point structures that define the spline. |
fill_mode | Member of the xtd::drawing::drawing_2d::fill_mode enumeration that determines how the curve is filled. |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
brush | A xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point_f structures that define the spline. |
fill_mode | Member of the xtd::drawing::drawing_2d::fill_mode enumeration that determines how the curve is filled. |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle structure that represents the bounding rectangle that defines the ellipse. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle_f structure that represents the bounding rectangle that defines the ellipse. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | Width of the bounding rectangle that defines the ellipse. |
height | Height of the bounding rectangle that defines the ellipse. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | Width of the bounding rectangle that defines the ellipse. |
height | Height of the bounding rectangle that defines the ellipse. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
path | xtd::drawing::drawing_2d::graphics_path that represents the path to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to the second side of the pie section. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle_f structure that represents the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to the second side of the pie section. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
width | Width of the bounding rectangle that defines the ellipse from which the pie section comes. |
height | Height of the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to the second side of the pie section. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
y | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
width | Width of the bounding rectangle that defines the ellipse from which the pie section comes. |
height | Height of the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | Angle in degrees measured clockwise from the start_angle parameter to the second side of the pie section. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point structures that represent the vertices of the polygon to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point_f structures that represent the vertices of the polygon to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point structures that represent the vertices of the polygon to fill. |
fill_mode | Member of the xtd::drawing::drawing_2d::fill_mode enumeration that determines the style of the fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
points | Array of xtd::drawing::point_f structures that represent the vertices of the polygon to fill. |
fill_mode | Member of the xtd::drawing::drawing_2d::fill_mode enumeration that determines the style of the fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle structure that represents the rectangle to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle_f structure that represents the rectangle to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the rectangle to fill. |
y | The y-coordinate of the upper-left corner of the rectangle to fill. |
width | Width of the rectangle to fill. |
height | Height of the rectangle to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the rectangle to fill. |
y | The y-coordinate of the upper-left corner of the rectangle to fill. |
width | Width of the rectangle to fill. |
height | Height of the rectangle to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rects | Array of xtd::drawing::rectangle structures that represent the rectangles to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rects | Array of xtd::drawing::rectangle_f structures that represent the rectangles to fill. |
void xtd::drawing::graphics::fill_region | ( | const xtd::drawing::brush & | brush, |
const xtd::drawing::region & | region | ||
) |
Fills the interior of a xtd::drawing::region.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
region | xtd::drawing::region that represents the area to fill. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle structure that represents the rounded rectangle to fill. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
rect | xtd::drawing::rectangle_f structure that represents the rounded rectangle to fill. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the rounded rectangle to fill. |
y | The y-coordinate of the upper-left corner of the rounded rectangle to fill. |
width | Width of the rounded rectangle to fill. |
height | Height of the rounded rectangle to fill. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::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.
brush | xtd::drawing::brush that determines the characteristics of the fill. |
x | The x-coordinate of the upper-left corner of the rounded rectangle to fill. |
y | The y-coordinate of the upper-left corner of the rounded rectangle to fill. |
width | Width of the rounded rectangle to fill. |
height | Height of the rounded rectangle to fill. |
radius | The radius of the rounded rectange angles. |
void xtd::drawing::graphics::flush | ( | ) |
Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
void xtd::drawing::graphics::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.
intention | Member of the xtd::drawing::drawing_2d::flush_intention enumeration that specifies whether the method returns immediately or waits for any existing operations to finish. |
intptr xtd::drawing::graphics::get_hdc | ( | ) | const |
Gets the handle to the device context associated with this xtd::drawing::graphics.
xtd::drawing::color xtd::drawing::graphics::get_nearest_color | ( | const xtd::drawing::color & | color | ) | const |
Gets the nearest color to the specified xtd::drawing::color structure.
color | xtd::drawing::color structure for which to find a match. |
void xtd::drawing::graphics::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.
region | xtd::drawing::region to intersect with the current region. |
void xtd::drawing::graphics::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.
rect | xtd::drawing::rectangle structure to intersect with the current clip region. |
void xtd::drawing::graphics::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.
rect | xtd::drawing::rectangle_f structure to intersect with the current clip region. |
bool xtd::drawing::graphics::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.
rect | xtd::drawing::rectangle structure to test for visibility. |
bool xtd::drawing::graphics::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.
rect | xtd::drawing::rectangle_f structure to test for visibility. |
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.
x | The x-coordinate of the upper-left corner of the rectangle to test for visibility. |
y | The y-coordinate of the upper-left corner of the rectangle to test for visibility. |
width | Width of the rectangle to test for visibility. |
height | Height of the rectangle to test for visibility. |
bool xtd::drawing::graphics::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.
x | The x-coordinate of the upper-left corner of the rectangle to test for visibility. |
y | The y-coordinate of the upper-left corner of the rectangle to test for visibility. |
width | Width of the rectangle to test for visibility. |
height | Height of the rectangle to test for visibility. |
bool xtd::drawing::graphics::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.
point | xtd::drawing::point structure to test for visibility. |
bool xtd::drawing::graphics::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.
point | xtd::drawing::point_f structure to test for visibility. |
Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this xtd::drawing::graphics.
x | The x-coordinate of the point to test for visibility. |
y | The y-coordinate of the point to test for visibility. |
bool xtd::drawing::graphics::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.
x | The x-coordinate of the point to test for visibility. |
y | The y-coordinate of the point to test for visibility. |
size_f xtd::drawing::graphics::measure_string | ( | const xtd::string & | text, |
const xtd::drawing::font & | font | ||
) |
Measures the specified string when drawn with the specified xtd::drawing::font.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
size_f xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
layout_area | xtd::drawing::size_f structure that specifies the maximum layout area for the text. |
size_f xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
width | Maximum width of the string in pixels. |
size_f xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
origin | xtd::drawing::point_f structure that represents the upper-left corner of the string. |
format | xtd::drawing::string_format that represents formatting information, such as line spacing, for the string. |
size_f xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
layout_area | xtd::drawing::size_f structure that specifies the maximum layout area for the text. |
format | xtd::drawing::string_format that represents formatting information, such as line spacing, for the string. |
size_f xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
width | Maximum width of the string in pixels. |
format | xtd::drawing::string_format that represents formatting information, such as line spacing, for the string. |
size_f xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
layout_area | xtd::drawing::size_f structure that specifies the maximum layout area for the text. |
format | xtd::drawing::string_format that represents formatting information, such as line spacing, for the string. |
characters_fitted | Number of characters in the string. |
lines_filled | Number of text lines in the string. |
void xtd::drawing::graphics::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.
matrix | 4x4 xtd::drawing::drawing_2d::matrix that multiplies the world transformation. |
void xtd::drawing::graphics::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.
matrix | 4x4 xtd::drawing::drawing_2d::matrix that multiplies the world transformation. |
order | Member of the xtd::drawing::drawing_2d::matrix_order enumeration that determines the order of the multiplication. |
void xtd::drawing::graphics::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.
hdc | Handle to a device context obtained by a previous call to the xtd::drawing::graphics::get_hdc() method of this xtd::drawing::graphics. |
void xtd::drawing::graphics::reset_clip | ( | ) |
Resets the clip region of this xtd::drawing::graphics to an infinite region.
void xtd::drawing::graphics::reset_transform | ( | ) |
Resets the world transformation matrix of this xtd::drawing::graphics to the identity matrix.
void xtd::drawing::graphics::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.
gstate | xtd::drawing::drawing_2d::graphics_state that represents the state to which to restore this xtd::drawing::graphics. |
void xtd::drawing::graphics::rotate_transform | ( | float | angle | ) |
Applies the specified rotation to the transformation matrix of this xtd::drawing::graphics.
angle | Angle of rotation in degrees. |
void xtd::drawing::graphics::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.
angle | Angle of rotation in degrees. |
order | Member of the xtd::drawing::drawing_2d::matrix_order enumeration that specifies whether the rotation is prepended or appended to the transformation matrix. |
xtd::drawing::drawing_2d::graphics_state xtd::drawing::graphics::save | ( | ) |
Saves the current state of this xtd::drawing::graphics and identifies the saved state with a xtd::drawing::drawing_2d::graphics_state.
void xtd::drawing::graphics::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.
sx | Scale factor in the x direction. |
sy | Scale factor in the y direction. |
void xtd::drawing::graphics::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.
sx | Scale factor in the x direction. |
sy | Scale factor in the y direction. |
order | Member of the xtd::drawing::drawing_2d::matrix_order enumeration that specifies whether the scaling operation is prepended or appended to the transformation matrix. |
Translates the clipping region of this xtd::drawing::graphics by specified amounts in the horizontal and vertical directions.
dx | The x-coordinate of the translation. |
dy | The y-coordinate of the translation. |
void xtd::drawing::graphics::translate_clip | ( | float | dx, |
float | dy | ||
) |
Translates the clipping region of this xtd::drawing::graphics by specified amounts in the horizontal and vertical directions.
dx | The x-coordinate of the translation. |
dy | The y-coordinate of the translation. |
void xtd::drawing::graphics::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.
dx | The x-coordinate of the translation. |
dy | The y-coordinate of the translation. |
void xtd::drawing::graphics::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.
dx | The x-coordinate of the translation. |
dy | The y-coordinate of the translation. |
order | Member of the xtd::drawing::drawing_2d::matrix_order enumeration that specifies whether the translation is prepended or appended to the transformation matrix. |
xtd::string xtd::drawing::graphics::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.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
width | Specifies the maximum width for the text. |
trimming | One of xtd::drawing::string_trimming values. |
|
inlineoverridevirtualnoexcept |
Returns a xtd::string that represents the current object.
Reimplemented from xtd::object.
Creates a new xtd::drawing::graphics from the specified handle to a device context.
hdc | Handle to a device context. |
Creates a new xtd::drawing::graphics from the specified handle to a device contextand handle to a device.
hdc | Handle to a device context. |
hdevice | Handle to a device. |
Creates a new xtd::drawing::graphics from the specified handle to a window.
hwnd | Handle to a window. |
|
static |
Creates a new xtd::drawing::graphics from the specified xtd::drawing::image.
image | xtd::drawing::image from which to create the new xtd::drawing::graphics. |