5 #include "../drawing_export.h" 33 #include <xtd/ustring> 44 class paint_event_args;
123 float dpi_x()
const noexcept;
127 float dpi_y()
const noexcept;
131 intptr handle()
const noexcept;
145 float page_scale()
const noexcept;
149 graphics& page_scale(
float value) noexcept;
185 int32 text_contrast()
const noexcept;
329 void draw_arc(
const xtd::drawing::pen& pen,
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
370 void draw_bezier(
const pen& pen,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4);
376 void draw_beziers(
const pen& pen,
const std::vector<xtd::drawing::point>& points);
381 void draw_beziers(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points);
389 void draw_closed_curve(
const pen& pen,
const std::vector<xtd::drawing::point>& points);
396 void draw_closed_curve(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points);
404 void draw_closed_curve(
const pen& pen,
const std::vector<xtd::drawing::point>& points,
float tension);
412 void draw_closed_curve(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points,
float tension);
420 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point>& points);
427 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points);
435 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point>& points,
float tension);
443 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points,
float tension);
455 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point>& points,
size_t offset,
size_t number_of_segments);
467 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points,
size_t offset,
size_t number_of_segments);
479 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point>& points,
size_t offset,
size_t number_of_segments,
float tension);
491 void draw_curve(
const pen& pen,
const std::vector<xtd::drawing::point_f>& points,
size_t offset,
size_t number_of_segments,
float tension);
518 void draw_ellipse(
const xtd::drawing::pen& pen,
float x,
float y,
float width,
float height);
572 void draw_image(
const xtd::drawing::image& image,
float x,
float y,
float width,
float height);
653 void draw_lines(
const xtd::drawing::pen& pen,
const std::vector<xtd::drawing::point>& points);
658 void draw_lines(
const xtd::drawing::pen& pen,
const std::vector<xtd::drawing::point_f>& points);
703 void draw_pie(
const xtd::drawing::pen& pen,
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
709 void draw_polygon(
const xtd::drawing::pen& pen,
const std::vector<xtd::drawing::point>& points);
714 void draw_polygon(
const xtd::drawing::pen& pen,
const std::vector<xtd::drawing::point_f>& points);
756 void draw_rectangle(
const xtd::drawing::pen& pen,
float x,
float y,
float width,
float height);
761 void draw_rectangles(
const xtd::drawing::pen& pen,
const std::vector<xtd::drawing::rectangle>& rects);
765 void draw_rectangles(
const xtd::drawing::pen& pen,
const std::vector<xtd::drawing::rectangle_f>& rects);
808 void draw_rounded_rectangle(
const xtd::drawing::pen& pen,
float x,
float y,
float width,
float height,
float radius);
873 void fill_closed_curve(
const xtd::drawing::brush& brush,
const std::vector<xtd::drawing::point>& points);
880 void fill_closed_curve(
const xtd::drawing::brush& brush,
const std::vector<xtd::drawing::point_f>& points);
941 void fill_ellipse(
const xtd::drawing::brush& brush,
float x,
float y,
float width,
float height);
986 void fill_pie(
const xtd::drawing::brush& brush,
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
992 void fill_polygon(
const xtd::drawing::brush& brush,
const std::vector<xtd::drawing::point>& points);
997 void fill_polygon(
const xtd::drawing::brush& brush,
const std::vector<xtd::drawing::point_f>& points);
1036 void fill_rectangle(
const xtd::drawing::brush& brush,
float x,
float y,
float width,
float height);
1041 void fill_rectangles(
const xtd::drawing::brush& brush,
const std::vector<xtd::drawing::rectangle>& rects);
1045 void fill_rectangles(
const xtd::drawing::brush& brush,
const std::vector<xtd::drawing::rectangle_f>& rects);
1082 void fill_rounded_rectangle(
const xtd::drawing::brush& brush,
float x,
float y,
float width,
float height,
float radius);
1171 bool is_visible(
float x,
float y,
float width,
float height);
1189 bool is_visible(
float x,
float y);
1253 void release_hdc(
intptr hdc);
1261 void reset_transform();
1272 void rotate_transform(
float angle);
1289 void scale_transform(
float sx,
float sy);
1304 void translate_clip(
float dx,
float dy);
1310 void translate_transform(
float dx,
float dy);
1331 float to_page_unit(
float value)
const;
1334 float to_pixels(
float value)
const;
1343 void draw_image_disabled(
const xtd::drawing::image& image,
float x,
float y,
float brightness);
1345 std::shared_ptr<data> data_;
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.h:18
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Definition: font.h:45
Encapsulates a 3-by-3 affine matrix that represents a geometric transform. This class cannot be inher...
Definition: matrix.h:74
smoothing_mode
Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled are...
Definition: smoothing_mode.h:24
Contains xtd::drawing::drawing_2d/::interpolation_mode enum class.
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
string_trimming
Specifies how to trim characters from a string that does not completely fit into a layout shape...
Definition: string_trimming.h:17
compositing_mode
Specifies how the source colors are combined with the background colors.
Definition: compositing_mode.h:20
text_rendering_hint
Specifies the quality of text rendering.
Definition: text_rendering_hint.h:20
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Contains xtd::drawing::drawing_2d/::graphics_path class.
Contains xtd::drawing::point class.
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::drawing::drawing_2d/::matrix_order enum class.
Contains xtd::drawing::text::text_rendering_hint enum class.
Stores a set of four floating-point numbers that represent the location and size of a rectangle...
Definition: rectangle_f.h:34
matrix_order
Specifies the order for matrix transform operations.
Definition: matrix_order.h:21
Contains xtd::drawing::solid_brush class.
Contains xtd::drawing::brush class.
Contains xtd::drawing::point_f class.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inh...
Definition: region.h:32
Contains xtd::drawing::drawing_2d/::flush_intention enum class.
fill_mode
Specifies how the interior of a closed path is filled.
Definition: fill_mode.h:24
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition: point_f.h:35
Stores an ordered pair of floating-point, which specify a height and width.
Definition: size_f.h:31
compositing_quality
Specifies the quality level to use during compositing.
Definition: compositing_quality.h:21
Contains xtd::drawing::rectangle_f class.
Contains xtd::drawing::rectangle class.
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
Represents the state of a xtd::drawing::graphics object. This object is returned by a call to the xtd...
Definition: graphics_state.h:31
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: pen.h:35
flush_intention
Specifies whether commands in the graphics stack are terminated (flushed) immediately or executed as ...
Definition: flush_intention.h:20
interpolation_mode
The xtd::drawing::drawing_2d/interpolation_mode enumeration specifies the algorithm that is used when...
Definition: interpolation_mode.h:20
Contains xtd::drawing::pen class.
Contains xtd::drawing::drawing_2d/::matrix class.
The xtd::uri::local_path data.
Contains xtd::drawing::drawing_2d/::compositing_mode enum class.
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
Contains xtd::drawing::drawing_2d/::pixel_offset_mode enum class.
Contains xtd::drawing::color class.
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Contains xtd::drawing::size_f class.
Contains xtd::drawing::drawing_2d/::compositing_quality enum class.
xtd::ustring to_string() const noexcept override
Returns a sxd::ustring that represents the current object.
Definition: graphics.h:1325
Contains xtd::drawing::region class.
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Contains xtd::drawing::drawing_2d/::smoothing_mode enum class.
Contains xtd::drawing::graphics_unit enum class.
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition: graphics_unit.h:17
Contains xtd::drawing::size class.
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Definition: brush.h:33
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics_path.h:36
pixel_offset_mode
Specifies how pixels are offset during rendering.
Definition: pixel_offset_mode.h:21
Contains xtd::drawing::drawing_2d/::graphics_state class.
Contains xtd::drawing::font class.
Represents a Windows icon, which is a small bitmap image that is used to represent an object...
Definition: icon.h:28
Contains xtd::drawing::copy_pixel_operation enum class.
The left or right CTRL modifier key.