72 graphics(
const graphics& value);
73 graphics& operator =(
const graphics& value);
367 void draw_bezier(const
pen&
pen,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4);
1377 float to_page_unit(
float value)
const;
1380 float to_pixels(
float value)
const;
Contains xtd::drawing::brush class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.hpp:33
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
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.
xtd::drawing::rectangle_f visible_clip_bounds() const noexcept
Gets the bounding rectangle of the visible clipping region of 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.
static graphics from_hdc(intptr hdc)
Creates a new xtd::drawing::graphics from the specified handle to a device context.
void scale_transform(float sx, float sy)
Applies the specified scaling operation to the transformation matrix of this xtd::drawing::graphics b...
void draw_rectangle(const xtd::drawing::pen &pen, const xtd::drawing::rectangle &rect)
Draws a rectangle specified by a xtd::drawing::rectangle structure.
xtd::drawing::drawing_2d::matrix transform() const noexcept
Gets a copy of the geometric world transformation for this xtd::drawing::graphics.
xtd::drawing::drawing_2d::smoothing_mode smoothing_mode() const noexcept
Gets the rendering quality for this xtd::drawing::graphics.
bool is_visible(const xtd::drawing::rectangle &rect)
Indicates whether the rectangle specified by a xtd::drawing::rectangle structure is contained within ...
void reset_clip()
Resets the clip region of this xtd::drawing::graphics to an infinite region.
void multiply_transform(const xtd::drawing::drawing_2d::matrix &matrix)
Multiplies the world transformation of this xtd::drawing::graphics and specified the xtd::drawing::dr...
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 s...
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.
float dpi_x() const noexcept
Gets the horizontal resolution of this xtd::drawing::graphics.
float page_scale() const noexcept
Gets the scaling between world units and page units for this xtd::drawing::graphics.
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...
void fill_closed_curve(const xtd::drawing::brush &brush, const xtd::array< xtd::drawing::point > &points)
Fills the interior of a closed cardinal spline curve defined by an array of xtd::drawing::point struc...
xtd::drawing::text::text_rendering_hint text_rendering_hint() const noexcept
Gets the rendering mode for text associated with this xtd::drawing::graphics.
void fill_rectangles(const xtd::drawing::brush &brush, const xtd::array< xtd::drawing::rectangle > &rects)
Fills the interiors of a series of rectangles specified by xtd::drawing::rectangle structures.
int32 text_contrast() const noexcept
Gets the gamma correction value for rendering text.
void fill_polygon(const xtd::drawing::brush &brush, const xtd::array< xtd::drawing::point > &points)
Fills the interior of a polygon defined by an array of points specified by xtd::drawing::point struct...
void release_hdc(intptr hdc)
Releases a device context handle obtained by a previous call to the xtd::drawing::graphics::get_hdc()...
void translate_transform(float dx, float dy)
Changes the origin of the coordinate system by prepending the specified translation to the transforma...
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::drawin...
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,...
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,...
void clear(const color &color)
Clears the entire drawing surface and fills it with the specified background color.
void translate_clip(int32 dx, int32 dy)
Translates the clipping region of this xtd::drawing::graphics by specified amounts in the horizontal ...
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 dev...
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 reset_transform()
Resets the world transformation matrix of this xtd::drawing::graphics to the identity matrix.
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::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition graphics.hpp:1333
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 flush()
Forces execution of all pending graphics operations and returns immediately without waiting for the o...
void draw_point(const xtd::drawing::pen &pen, const xtd::drawing::point &point)
Draws a point specified by the coordinate pairs.
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::rectang...
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_polygon(const xtd::drawing::pen &pen, const xtd::array< xtd::drawing::point > &points)
Draws a polygon defined by an array of xtd::drawing::point structures.
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.
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.
float dpi_y() const noexcept
Gets the vertical resolution of this xtd::drawing::graphics.
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_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 rectang...
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.
static graphics from_hwnd(intptr hwnd)
Creates a new xtd::drawing::graphics from the specified handle to a window.
xtd::drawing::graphics_unit page_unit() const noexcept
Gets or sets the unit of measure used for page coordinates in this xtd::drawing::graphics.
void draw_rectangles(const xtd::drawing::pen &pen, const xtd::array< xtd::drawing::rectangle > &rects)
Draws a series of rectangles specified by xtd::drawing::rectangle structures.
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.
xtd::drawing::drawing_2d::compositing_quality compositing_quality() const noexcept
Gets the rendering quality of composited images drawn to this xtd::drawing::graphics.
void draw_closed_curve(const pen &pen, const xtd::array< xtd::drawing::point > &points)
Draws a closed cardinal spline defined by an array of xtd::drawing::point structures.
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_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_curve(const pen &pen, const xtd::array< xtd::drawing::point > &points)
Draws a cardinal spline through a specified array of xtd::drawing::point structures.
intptr handle() const noexcept
Gets the handle device context that the graphics is bound to.
void draw_beziers(const pen &pen, const xtd::array< xtd::drawing::point > &points)
Draws a series of Bézier splines from an array of xtd::drawing::point structures.
xtd::drawing::region clip() const noexcept
Gets a xtd::drawing::region that limits the drawing region of this 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,...
void fill_region(const xtd::drawing::brush &brush, const xtd::drawing::region ®ion)
Fills the interior of a xtd::drawing::region.
static graphics from_image(const xtd::drawing::image &image)
Creates a new xtd::drawing::graphics from the specified xtd::drawing::image.
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_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 radi...
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...
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 stru...
void draw_lines(const xtd::drawing::pen &pen, const xtd::array< xtd::drawing::point > &points)
Draws a series of line segments that connect an array of xtd::drawing::point structures.
xtd::drawing::drawing_2d::graphics_state save()
Saves the current state of this xtd::drawing::graphics and identifies the saved state with a xtd::dra...
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_path(const xtd::drawing::pen &pen, const xtd::drawing::drawing_2d::graphics_path &path)
Draws a xtd::drawing::drawing_2d::graphics_path.
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.
xtd::drawing::rectangle_f clip_bounds() const noexcept
Gets a xtd::drawing::rectangle_f structure that bounds the clipping region of this xtd::drawing::grap...
xtd::drawing::drawing_2d::interpolation_mode interpolation_mode() const noexcept
Gets the interpolation mode associated with this xtd::drawing::graphics.
void rotate_transform(float angle)
Applies the specified rotation to the transformation matrix of this xtd::drawing::graphics.
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.hpp:28
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition pen.hpp:32
Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inh...
Definition region.hpp:32
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
virtual type_object get_type() const noexcept
Gets the type of the current instance.
Contains xtd::drawing::drawing_2d::compositing_mode enum class.
Contains xtd::drawing::drawing_2d::compositing_quality enum class.
Contains xtd::drawing::copy_pixel_operation enum class.
Contains xtd::drawing::color class.
Contains drawing_export_ keyword.
Contains xtd::drawing::drawing_2d::flush_intention enum class.
Contains xtd::drawing::font class.
Contains xtd::drawing::drawing_2d::graphics_path class.
Contains xtd::drawing::drawing_2d::graphics_state class.
Contains xtd::drawing::graphics_unit enum class.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
string_trimming
Specifies how to trim characters from a string that does not completely fit into a layout shape.
Definition string_trimming.hpp:17
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
@ path
The xtd::uri::local_path data.
Definition uri_components.hpp:27
@ 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
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition graphics_unit.hpp:17
copy_pixel_operation
Determines how the source color in a copy pixel operation is combined with the destination color to r...
Definition copy_pixel_operation.hpp:18
Contains xtd::drawing::drawing_2d::interpolation_mode enum class.
Contains xtd::drawing::drawing_2d::matrix class.
Contains xtd::drawing::drawing_2d::matrix_order enum class.
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition compositing_mode.hpp:12
The xtd::drawing::text namespace provides advanced GDI+ typography functionality.
Definition font_collection.hpp:14
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::pen class.
Contains xtd::drawing::drawing_2d::pixel_offset_mode enum class.
Contains xtd::drawing::point class.
Contains xtd::drawing::point_f class.
Contains xtd::drawing::rectangle class.
Contains xtd::drawing::rectangle_f class.
Contains xtd::drawing::region class.
Contains xtd::drawing::size_f class.
Contains xtd::drawing::drawing_2d::smoothing_mode enum class.
Contains xtd::drawing::solid_brush 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
Stores an ordered pair of floating-point, which specify a height and width.
Definition size_f.hpp:31
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
Contains xtd::drawing::text::text_rendering_hint enum class.
Contains xtd::drawing::size class.