5#include "../drawing_export.hpp"
41 class paint_event_args;
100 xtd::drawing::drawing_2d::compositing_mode compositing_mode() const noexcept;
106 graphics& compositing_mode(
xtd::drawing::drawing_2d::compositing_mode value);
111 xtd::drawing::drawing_2d::compositing_quality compositing_quality() const noexcept;
116 graphics& compositing_quality(
xtd::drawing::drawing_2d::compositing_quality value);
120 float dpi_x() const noexcept;
124 float dpi_y() const noexcept;
133 xtd::drawing::drawing_2d::interpolation_mode interpolation_mode() const noexcept;
138 graphics& interpolation_mode(
xtd::drawing::drawing_2d::interpolation_mode value) noexcept;
142 float page_scale() const noexcept;
162 xtd::drawing::drawing_2d::pixel_offset_mode pixel_offset_mode() const noexcept;
167 graphics& pixel_offset_mode(
xtd::drawing::drawing_2d::pixel_offset_mode value) noexcept;
172 xtd::drawing::drawing_2d::smoothing_mode smoothing_mode() const noexcept;
177 graphics& smoothing_mode(
xtd::drawing::drawing_2d::smoothing_mode value) noexcept;
182 int32 text_contrast() const noexcept;
193 xtd::drawing::text::text_rendering_hint text_rendering_hint() const noexcept;
199 graphics& text_rendering_hint(
xtd::drawing::text::text_rendering_hint value);
205 xtd::drawing::drawing_2d::matrix transform() const noexcept;
211 graphics& transform(const
xtd::drawing::drawing_2d::matrix& value) noexcept;
233 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);
267 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);
299 void draw_arc(const
xtd::drawing::
pen&
pen, const
xtd::drawing::
rectangle& rect,
float start_angle,
float sweep_angle);
326 void draw_arc(const
xtd::drawing::
pen&
pen,
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
367 void draw_bezier(const
pen&
pen,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4);
452 void draw_curve(const
pen&
pen, const
xtd::
array<
xtd::drawing::
point>& points,
size_t offset,
size_t number_of_segments);
476 void draw_curve(const
pen&
pen, const
xtd::
array<
xtd::drawing::
point>& points,
size_t offset,
size_t number_of_segments,
float tension);
488 void draw_curve(const
pen&
pen, const
xtd::
array<
xtd::drawing::
point_f>& points,
size_t offset,
size_t number_of_segments,
float tension);
515 void draw_ellipse(const
xtd::drawing::
pen&
pen,
float x,
float y,
float width,
float height);
569 void draw_image(const
xtd::drawing::
image&
image,
float x,
float y,
float width,
float height);
616 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);
628 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);
689 void draw_line(const
xtd::drawing::
pen&
pen,
float x1,
float y1,
float x2,
float y2);
706 void draw_path(const
xtd::drawing::
pen&
pen, const
xtd::drawing::drawing_2d::graphics_path& path);
715 void draw_pie(const
xtd::drawing::
pen&
pen, const
xtd::drawing::
rectangle& rect,
float start_angle,
float sweep_angle);
745 void draw_pie(const
xtd::drawing::
pen&
pen,
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
775 void draw_point(const
xtd::drawing::
pen&
pen,
float x,
float y);
798 void draw_rectangle(const
xtd::drawing::
pen&
pen,
float x,
float y,
float width,
float height);
850 void draw_rounded_rectangle(const
xtd::drawing::
pen&
pen,
float x,
float y,
float width,
float height,
float radius);
983 void fill_ellipse(const
xtd::drawing::
brush&
brush,
float x,
float y,
float width,
float height);
989 void fill_path(const
xtd::drawing::
brush&
brush, const
xtd::drawing::drawing_2d::graphics_path& path);
1028 void fill_pie(const
xtd::drawing::
brush&
brush,
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
1078 void fill_rectangle(const
xtd::drawing::
brush&
brush,
float x,
float y,
float width,
float height);
1124 void fill_rounded_rectangle(const
xtd::drawing::
brush&
brush,
float x,
float y,
float width,
float height,
float radius);
1132 void flush(
xtd::drawing::drawing_2d::flush_intention intention);
1179 bool is_visible(
float x,
float y,
float width,
float height);
1197 bool is_visible(
float x,
float y);
1250 void multiply_transform(const
xtd::drawing::drawing_2d::matrix& matrix);
1255 void multiply_transform(const
xtd::drawing::drawing_2d::matrix& matrix,
xtd::drawing::drawing_2d::matrix_order order);
1269 void reset_transform();
1275 void restore(const
xtd::drawing::drawing_2d::graphics_state& gstate);
1280 void rotate_transform(
float angle);
1285 void rotate_transform(
float angle,
xtd::drawing::drawing_2d::matrix_order order);
1291 xtd::drawing::drawing_2d::graphics_state save();
1297 void scale_transform(
float sx,
float sy);
1303 void scale_transform(
float sx,
float sy,
xtd::drawing::drawing_2d::matrix_order order);
1312 void translate_clip(
float dx,
float dy);
1318 void translate_transform(
float dx,
float dy);
1324 void translate_transform(
float dx,
float dy,
xtd::drawing::drawing_2d::matrix_order order);
1333 xtd::
string to_string() const noexcept
override {
return get_type().full_name();}
1377 float to_page_unit(
float value)
const;
1380 float to_pixels(
float value)
const;
1389 void draw_image_disabled(
const xtd::drawing::image&
image,
float x,
float y,
float width,
float height,
float brightness);
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
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:67
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 dev...
static graphics from_hwnd(intptr hwnd)
Creates a new xtd::drawing::graphics from the specified handle to a window.
xtd::drawing::region clip() const noexcept
Gets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.
static graphics from_image(const xtd::drawing::image &image)
Creates a new xtd::drawing::graphics from the specified xtd::drawing::image.
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:43
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
Contains xtd::drawing::color class.
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::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
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
@ control
The left or right CTRL modifier key.
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 namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
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.