105 void add_arc(
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
146 void add_bezier(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4);
256 void add_line(
float x1,
float y1,
float x2,
float y2);
301 void add_pie(
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
399 bool equals(const
object& obj) const noexcept override;
451 void recreate_handle();
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics_path.hpp:33
xtd::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
void add_lines(const xtd::array< xtd::drawing::point > &points)
Appends a series of connected line segments to the end of this xtd::drawing::drawing_2d::graphics_pat...
void add_arc(const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
Appends an elliptical arc to the current figure.
void add_ellipse(const xtd::drawing::rectangle &rect)
Adds an ellipse to the current path.
void add_pie(const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
Adds the outline of a pie shape to this path.
graphics_path()
Initializes a new instance of the xtd::drawing::drawing_2d::graphics_path class with a xtd::drawing::...
void close_all_figures()
Closes all open figures in this path and starts a new figure. It closes each open figure by connectin...
void add_beziers(const xtd::array< xtd::drawing::point > &points)
Adds a sequence of connected cubic Bézier curves to the current figure.
xtd::drawing::drawing_2d::fill_mode fill_mode() const noexcept
Gets a xtd::drawing::drawing_2d::fill_mode enumeration that determines how the interiors of shapes in...
void add_closed_curve(const xtd::array< xtd::drawing::point > &points)
Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through e...
intptr handle() const noexcept
Gets the handle of the graphics path.
void add_bezier(const xtd::drawing::point &pt1, const xtd::drawing::point &pt2, const xtd::drawing::point &pt3, const xtd::drawing::point &pt4)
Adds a cubic Bézier curve to the current figure.
void reverse()
Reverses the order of points in the xtd::drawing::drawing_2d::graphics_path::path_points array of thi...
graphics_path(xtd::drawing::drawing_2d::fill_mode mode)
Initializes a new instance of the xtd::drawing::drawing_2d::graphics_path class with the specified xt...
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::drawing::rectangle_f get_bounds() const
Returns a rectangle that bounds this xtd::drawing::drawing_2d::graphics_path.
void reset()
Empties the xtd::drawing::drawing_2d::graphics_path::path_points and xtd::drawing::drawing_2d::graphi...
void add_line(const xtd::drawing::point &pt1, const xtd::drawing::point &pt2)
Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.
void close_figure()
Closes the current figure and starts a new figure. If the current figure contains a sequence of conne...
void add_curve(const xtd::array< xtd::drawing::point > &points)
Adds a spline curve to the current figure.
void flatten()
Converts each curve in this path into a sequence of connected line segments.
void start_figure()
Starts a new figure without closing the current figure. All subsequent points added to the path are a...
void add_rectangles(const xtd::array< xtd::drawing::rectangle > &rects)
Adds a series of rectangles to this path.
void add_string(const xtd::string &s, const xtd::drawing::font_family &family, xtd::drawing::font_style style, float em_size, const xtd::drawing::point &origin, const xtd::drawing::string_format &format)
Adds a text string to this path.
xtd::drawing::point_f get_lat_point() const
Gets the last point of this xtd::drawing::drawing_2d::graphics_path.
void add_path(const graphics_path &adding_path, bool connect)
Appends the specified xtd::drawing::drawing_2d::graphics_path to this path.
void add_polygon(const xtd::array< xtd::drawing::point > &points)
Adds a polygon to this path.
void add_rounded_rectangle(const xtd::drawing::rectangle &rect, float radius)
Adds a rounded rectangle to this path.
void add_rectangle(const xtd::drawing::rectangle &rect)
Adds a rectangle to this path.
bool is_vsible(const xtd::drawing::point &point) const
Indicates whether the specified point is contained within this xtd::drawing::drawing_2d::graphics_pat...
Defines a group of type faces having a similar basic design and certain variations in styles....
Definition font_family.hpp:33
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains drawing_export_ keyword.
Contains xtd::drawing::drawing_2d::fill_mode enum class.
Contains xtd::drawing::font_family class.
Contains xtd::drawing::font_style enum class.
font_style
Specifies style information applied to text. This enumeration has a flags attribute that allows a bit...
Definition font_style.hpp:17
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
@ s
The S key.
Definition console_key.hpp:124
@ y
The Y key.
Definition console_key.hpp:136
@ x
The X key.
Definition console_key.hpp:134
fill_mode
Specifies how the interior of a closed path is filled.
Definition fill_mode.hpp:23
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition compositing_mode.hpp:12
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::drawing::rectangle class.
Contains xtd::drawing::rectangle_f class.
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.hpp:35
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54
Stores a set of four floating-point numbers that represent the location and size of a rectangle....
Definition rectangle_f.hpp:34
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44