Contains graphics native API.
Protected Static Methods | |
static void | copy_from_graphics (intptr handle, intptr handle_source, int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, int32 block_region_width, int32 block_region_height, int32 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 graphics. | |
static void | clear (intptr handle, xtd::byte a, xtd::byte r, xtd::byte g, xtd::byte b) |
Clears the entire drawing surface and fills it with the specified background color. | |
static void | clip (intptr handle, intptr region) |
Sets a region handle that limits the drawing region of the graphics. | |
static void | compositing_mode (intptr handle, int32 compositing_mode) |
Sets a value that specifies how composited images are drawn to the graphics. | |
static void | compositing_quality (intptr handle, int32 compositing_quality) |
Sets the rendering quality of composited images drawn to the graphics. | |
static void | copy_from_screen (intptr handle, int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, int32 block_region_width, int32 block_region_height, int32 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 graphics. | |
static void | destroy (intptr handle) |
Destroys graphics_path. | |
static void | draw_arc (intptr handle, intptr 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. | |
static void | draw_bezier (intptr handle, intptr 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. | |
static void | draw_beziers (intptr handle, intptr pen, const std::vector< xtd::collections::generic::key_value_pair< float, float > > &points) |
Draws a series of Bézier splines from an array of xtd::collections::generic::key_value_pair<float, float> structures. | |
static void | draw_closed_curve (intptr handle, intptr pen, std::vector< xtd::collections::generic::key_value_pair< float, float > > points, float tension) |
Draws a closed cardinal spline defined by an array of xtd::collections::generic::key_value_pair<float, float> structures using a specified tension. | |
static void | draw_curve (intptr handle, intptr pen, std::vector< xtd::collections::generic::key_value_pair< float, float > > points, float tension) |
Draws a cardinal spline through a specified array of xtd::collections::generic::key_value_pair<float, float> structures using a specified tension. The drawing begins offset from the beginning of the array. | |
static void | draw_ellipse (intptr handle, intptr pen, float x, float y, float width, float heigh) |
Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width. | |
static void | draw_image (intptr handle, intptr image, float x, float y, float width, float height) |
Draws the specified image, using its original physical size, at the specified location, and size. | |
static void | draw_image (intptr handle, intptr image, float dest_x, float dest_y, float dest_width, float dest_height, float src_x, float src_y, float src_width, float src_height) |
Draws the specified image, using its original physical size, at the specified location. | |
static void | draw_image_disabled (intptr handle, intptr image, float x, float y, float width, float height, float brightness) |
Draws the specified dosabled image at the specified location and size. | |
static void | draw_line (intptr handle, intptr pen, float x1, float y1, float x2, float y2) |
Draws a line connecting the two points specified by the coordinate pairs. | |
static void | draw_lines (intptr handle, intptr pen, const std::vector< xtd::collections::generic::key_value_pair< float, float > > &points) |
Draws a series of line segments that connect an array of xtd::collections::generic::key_value_pair<float, float> structures. | |
static void | draw_path (intptr handle, intptr pen, intptr graphics_path) |
Draws a graphics path. | |
static void | draw_pie (intptr handle, intptr 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. | |
static void | draw_polygon (intptr handle, intptr pen, const std::vector< xtd::collections::generic::key_value_pair< float, float > > &points) |
Draws a polygon defined by an array of xtd::collections::generic::key_value_pair<float, float> structures. | |
static void | draw_rectangle (intptr handle, intptr pen, float x, float y, float width, float height) |
Draws a rectangle specified by a coordinate pair, a width, and a height. | |
static void | draw_rectangles (intptr handle, intptr pen, std::vector< std::tuple< float, float, float, float > > &rects) |
Draws a series of rectangles specified by std::tuple<float, float, float, float> structures. | |
static void | draw_rotated_string (intptr handle, const xtd::string &text, intptr font, intptr brush, float x, float y, float angle) |
Draws the specified text string at the specified location with the specified brush, font and angle. | |
static void | draw_rounded_rectangle (intptr handle, intptr 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. | |
static void | draw_string (intptr handle, const xtd::string &text, intptr font, intptr brush, float x, float y, int32 alignment, int32 line_alignment, int32 hot_key_prefix, int32 trimming) |
Draws the specified text string at the specified point with the specified brush and font handle using the formatting attributes of the format. | |
static void | draw_string (intptr handle, const xtd::string &text, intptr font, intptr brush, float x, float y, float width, float height, int32 alignment, int32 line_alignment, int32 hot_key_prefix, int32 trimming, int32 string_formats) |
Draws the specified text string at the specified rectangle with the specified brush and font handle using the formatting attributes of the format. | |
static void | fill_closed_curve (intptr handle, intptr brush, std::vector< xtd::collections::generic::key_value_pair< float, float > > points, uint32 fill_mode, float tension) |
Fills the interior of a closed cardinal spline curve defined by an array of xtd::collections::generic::key_value_pair<float, float> structures. | |
static void | fill_ellipse (intptr handle, intptr brush, float x, float y, float width, float heigh) |
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height. | |
static void | fill_path (intptr handle, intptr brush, intptr graphics_path, int32 mode) |
Fills the interior of a graphics path. | |
static void | fill_pie (intptr handle, intptr 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. | |
static void | fill_polygon (intptr handle, intptr pen, const std::vector< xtd::collections::generic::key_value_pair< float, float > > &points, int32 fill_mode) |
Fills the interior of a polygon defined by an array of points specified by xtd::collections::generic::key_value_pair<float, float> structures using the specified fill mode. | |
static void | fill_rectangle (intptr handle, intptr 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. | |
static void | fill_rectangles (intptr handle, intptr brush, std::vector< std::tuple< float, float, float, float > > &rects) |
Fills the interiors of a series of rectangles specified by std::tuple<float, float, float, float> structures. | |
static void | fill_region (intptr handle, intptr brush, intptr region) |
Fills the interior of a region. | |
static void | fill_rounded_rectangle (intptr handle, intptr 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. | |
static void | flush (intptr handle, int32 intention) |
Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish. | |
static intptr | from_hdc (intptr hdc) |
Creates a new graphics from the specified handle to a device context. | |
static intptr | from_hdc (intptr hdc, intptr hdevice) |
Creates a new graphics from the specified handle to a device contextand handle to a device. | |
static intptr | from_hwnd (intptr hwnd) |
Creates a new graphics from the specified handle to a window. | |
static intptr | from_image (intptr image) |
Creates a new graphics from the specified image. | |
static float | get_dpi_x (intptr handle) |
Gets the horizontal resolution of this graphics. | |
static float | get_dpi_y (intptr handle) |
Gets the vertical resolution of this graphics. | |
static intptr | get_hdc (intptr handle) |
Gets the handle to the device context associated with this graphics. | |
static void | get_nearest_color (intptr handle, xtd::byte original_a, xtd::byte original_r, xtd::byte original_g, xtd::byte original_b, xtd::byte &nearest_a, xtd::byte &nearest_r, xtd::byte &nearest_g, xtd::byte &nearest_b) |
Gets the nearest color to the specified color. | |
static void | interpolation_mode (intptr handle, int32 interpolation_mode) |
Sets the interpolation mode associated with the graphics. | |
static void | pixel_offset_mode (intptr handle, int32 pixel_offst_mode) |
Sets a value specifying how pixels are offset during rendering of this graphics. | |
static void | measure_string (intptr handle, const xtd::string &text, intptr font, float &width, float &height, float max_width, float max_height, int32 alignment, int32 line_alignment, int32 hot_key_prefix, int32 trimming, size_t characters_fitted, size_t lines_filled, bool measure_trailing_spaces) |
Measures the specified string when drawn with the specified font and formatted with the specified format. | |
static void | release_hdc (intptr handle, intptr hdc) |
Releases a device context handle obtained by a previous call to the xtd::drawing::native::graphics::get_hdc() method of the graphics. | |
static void | reset_transform (intptr handle) |
Resets the world transformation matrix of the graphics to the identity matrix. | |
static void | restore (intptr handle, intptr &gstate) |
Restores the state of the graphics to the state represented by a graphics state. | |
static void | rotate_transform (intptr handle, float angle, int32 order) |
Applies the specified rotation to the transformation matrix of the graphics in the specified order. | |
static intptr | save (intptr handle) |
Saves the current state of the graphics and identifies the saved state with a graphics state. | |
static void | scale_transform (intptr handle, float sx, float sy, int32 order) |
Applies the specified scaling operation to the transformation matrix of the graphics in the specified order. | |
static void | smoothing_mode (intptr handle, int32 smoothing_mode) |
Sets the rendering quality for the graphics. | |
static void | text_contrast (intptr handle, int32 text_contrast) |
Sets the gamma correction value for rendering text. | |
static void | text_rendering_hint (intptr handle, int32 text_rendering_hint) |
Sets the rendering mode for text associated with the graphics. | |
static intptr | transform (intptr handle) |
Gets a copy of the geometric world transformation for the graphics. | |
static void | transform (intptr handle, intptr matrix) |
Sets a copy of the geometric world transformation for the graphics. | |
static void | translate_transform (intptr handle, float dx, float dy, int32 order) |
Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of the graphics in the specified order. | |
static xtd::string | trim_string (intptr handle, const xtd::string &text, intptr font, float width, int32 trimming) |
Trims the specified string for a specified width with the specified font and trimming. | |
static void | visible_clip_bounds (intptr handle, float &x, float &y, float &width, float &height) |
Gets the bounding rectangle of the visible clipping region of the graphics. | |
|
staticprotected |
Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the graphics.
handle | The graphics handle. |
handle_source | The source graphics handle. |
source_x | The x-coordinate of the upper-left corner of the source rectangle. |
source_y | The x-coordinate of the upper-left corner of the source rectangle. |
destination_x | The x-coordinate of the upper-left corner of the destination rectangle. |
destination_y | The y-coordinate of the upper-left corner of the destination rectangle. |
block_region_width | The width of the source and destination rectangle. |
block_region_height | The height of the source and destination rectangle. |
copy_pixel_operation | The copy pixel operation values (see copy_pixel_operations.h for more information). |
|
staticprotected |
Clears the entire drawing surface and fills it with the specified background color.
handle | The graphics handle. |
a | The alpha component of the background color of the drawing surface. |
r | The red component of the background color of the drawing surface. |
g | The green component of the background color of the drawing surface. |
b | The blue component of the background color of the drawing surface. |
Sets a region handle that limits the drawing region of the graphics.
handle | The graphics handle. |
region | A region handle that limits the portion of the graphics that is currently available for drawing. |
|
staticprotected |
Sets a value that specifies how composited images are drawn to the graphics.
handle | The graphics handle. |
compositing_mode | This property specifies a compositing mode value (see compositing_modes.h for more information). |
|
staticprotected |
Sets the rendering quality of composited images drawn to the graphics.
handle | The graphics handle. |
compositing_quality | This property specifies a compositing quality value (see compositing_qualities.h for more information). |
|
staticprotected |
Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the graphics.
handle | The graphics handle. |
source_x | The x-coordinate of the upper-left corner of the source rectangle. |
source_y | The y-coordinate of the upper-left corner of the source rectangle. |
destination_x | The x-coordinate of the upper-left corner of the destination rectangle. |
destination_y | The x-coordinate of the upper-left corner of the destination rectangle. |
block_region_width | The width of the area to be transferred. |
block_region_height | The height of the area to be transferred. |
copy_pixel_operation | The copy pixel operation values (see copy_pixel_operations.h for more information). |
|
staticprotected |
|
staticprotected |
Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
handle | The graphics handle. |
pen | A pen handle 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. |
|
staticprotected |
Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
handle | The graphics handle. |
pen | A pen handle 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. |
|
staticprotected |
Draws a series of Bézier splines from an array of xtd::collections::generic::key_value_pair<float, float> structures.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the curve. |
points | Array of xtd::collections::generic::key_value_pair<float, float> 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. |
|
staticprotected |
Draws a closed cardinal spline defined by an array of xtd::collections::generic::key_value_pair<float, float> structures using a specified tension.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the curve. |
points | Array of xtd::collections::generic::key_value_pair<float, float> structures that define the spline. |
tension | alue greater than or equal to 0.0F that specifies the tension of the curve. |
|
staticprotected |
Draws a cardinal spline through a specified array of xtd::collections::generic::key_value_pair<float, float> structures using a specified tension. The drawing begins offset from the beginning of the array.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the curve. |
points | Array of xtd::collections::generic::key_value_pair<float, float> 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. |
|
staticprotected |
Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.
handle | The graphics handle. |
pen | A pen handle 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. |
|
staticprotected |
Draws the specified image, using its original physical size, at the specified location, and size.
handle | The graphics handle. |
image | An image handle 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. |
|
staticprotected |
Draws the specified image, using its original physical size, at the specified location.
handle | The graphics handle. |
image | An image handle 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 bounding rectangle that defines the image. |
height | Height of the bounding rectangle that defines the image. |
|
staticprotected |
Draws the specified dosabled image at the specified location and size.
handle | The graphics handle. |
image | An image handle 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 bounding rectangle that defines the image. |
height | Height of the bounding rectangle that defines the image. |
brightness | The image brightness from 0.0 to 1.0. |
|
staticprotected |
Draws a line connecting the two points specified by the coordinate pairs.
handle | The graphics handle. |
pen | A pen handle 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. |
|
staticprotected |
Draws a series of line segments that connect an array of xtd::collections::generic::key_value_pair<float, float> structures.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the line segments. |
points | Array of xtd::collections::generic::key_value_pair<float, float> structures that represent the points to connect. |
|
staticprotected |
Draws a graphics path.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the path. |
path | A graphics path handle to draw. |
|
staticprotected |
Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
handle | The graphics handle. |
pen | 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. |
|
staticprotected |
Draws a polygon defined by an array of xtd::collections::generic::key_value_pair<float, float> structures.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the polygon. |
points | Array of xtd::collections::generic::key_value_pair<float, float> structures that represent the vertices of the polygon. |
|
staticprotected |
Draws a rectangle specified by a coordinate pair, a width, and a height.
handle | The graphics handle. |
pen | A pen handle 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. |
|
staticprotected |
Draws a series of rectangles specified by std::tuple<float, float, float, float> structures.
handle | The graphics handle. |
pen | A pen handle that determines the color, width, and style of the outlines of the rectangles. |
rects | Array of std::tuple<float, float, float, float> structures that represent the rectangles to draw. |
|
staticprotected |
Draws the specified text string at the specified location with the specified brush, font and angle.
handle | The graphics handle. |
s | String to draw. |
font | A font handle that defines the text format of the string. |
brush | A brush handle 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. |
|
staticprotected |
Draws a rounded rectangle specified by a coordinate pair, a width, a height, and radius.
handle | The graphics handle. |
pen | A pen handle 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. |
|
staticprotected |
Draws the specified text string at the specified point with the specified brush and font handle using the formatting attributes of the format.
handle | The graphics handle. |
text | String to draw. |
font | A font handle that defines the text format of the string. |
brush | A brush handle that determines the color and texture of the drawn text. |
x | The x-coordinate of the upper-left corner of the string. |
y | The y-coordinate of the upper left corner of the string. |
alignment | The alignment of the text (see string_alignments.h for more information). |
line_alignment | The alignment of the text (see string_alignments.h for more information). |
hot_key_prefix | The hotkey prefix value (see hot_key_prefixes.h for more information). |
trimming | The trimming value for the text (see string_trimmings.h for more information). |
|
staticprotected |
Draws the specified text string at the specified rectangle with the specified brush and font handle using the formatting attributes of the format.
handle | The graphics handle. |
text | String to draw. |
font | A font handle that defines the text format of the string. |
brush | A brush handle that determines the color and texture of the drawn text. |
x | The x-coordinate of the upper-left corner of the string. |
y | The y-coordinate of the upper left corner of the string. |
width | The width of the text. |
height | The height of the text. |
alignment | The alignment of the text (see string_alignments.h for more information). |
line_alignment | The alignment of the text (see string_alignments.h for more information). |
hot_key_prefix | The hotkey prefix value (see hot_key_prefixes.h for more information). |
trimming | The trimming value for the text (see string_trimmings.h for more information). |
no_wrap | True if the text wrapping between lines when formatting within a rectangle is disabled; otherwise false. |
|
staticprotected |
Fills the interior of a closed cardinal spline curve defined by an array of xtd::collections::generic::key_value_pair<float, float> structures.
handle | The graphics handle. |
brush | A brush handle that determines the characteristics of the fill. |
points | Array of xtd::collections::generic::key_value_pair<float, float> structures that define the spline. |
fill_mode | A fill mode value that determines how the curve is filled (see fill_modes.h for more information). |
tension | Value greater than or equal to 0.0F that specifies the tension of the curve. |
|
staticprotected |
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
handle | The graphics handle. |
brush | A brush handle 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. |
|
staticprotected |
Fills the interior of a graphics path.
handle | The graphics handle. |
brush | A brush handle that determines the characteristics of the fill. |
path | A graphics path handle that represents the path to fill. |
mode | A fill mode value that specifies how the interiors of shapes in the graphics path are filled (see fill_modes.h for more information). |
|
staticprotected |
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.
handle | The graphics handle. |
brush | A brush handle 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. |
|
staticprotected |
Fills the interior of a polygon defined by an array of points specified by xtd::collections::generic::key_value_pair<float, float> structures using the specified fill mode.
handle | The graphics handle. |
brush | A brush handle that determines the characteristics of the fill. |
points | Array of xtd::collections::generic::key_value_pair<float, float> structures that represent the vertices of the polygon to fill. |
fill_mode | Member of the fill mode value that determines the style of the fill (see fill_modes.h for more information). |
|
staticprotected |
Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
handle | The graphics handle. |
brush | A brush handle 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. |
|
staticprotected |
Fills the interiors of a series of rectangles specified by std::tuple<float, float, float, float> structures.
handle | The graphics handle. |
brush | A brush handle that determines the characteristics of the fill. |
rects | Array of std::tuple<float, float, float, float> structures that represent the rectangles to fill. |
|
staticprotected |
Fills the interior of a region.
handle | The graphics handle. |
brush | A brush handle that determines the characteristics of the fill. |
region | A region handle that represents the area to fill. |
|
staticprotected |
Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height, and a radius.
handle | The graphics handle. |
brush | A brush handle 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. |
|
staticprotected |
Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.
handle | The graphics handle. |
intention | A flush intention value that specifies whether the method returns immediately or waits for any existing operations to finish (see flush_intentions.h for more information). |
Creates a new graphics from the specified handle to a device context.
hdc | Handle to a device context. |
|
staticprotected |
Creates a new 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 graphics from the specified handle to a window.
hwnd | Handle to a window. |
Creates a new graphics from the specified image.
image | image from which to create the new graphics. |
|
staticprotected |
Gets the horizontal resolution of this graphics.
handle | The graphics handle. |
|
staticprotected |
Gets the vertical resolution of this graphics.
handle | The graphics handle. |
Gets the handle to the device context associated with this graphics.
handle | The graphics handle. |
|
staticprotected |
Gets the nearest color to the specified color.
handle | The graphics handle. |
original_a | The alpha component of color for which to find a match. |
original_r | The red component of color for which to find a match. |
original_g | The green component of color for which to find a match. |
original_b | The blue component of color for which to find a match. |
nearest_a | The alpha component of color that represents the nearest color to the one specified with the color parameter. |
nearest_r | The red component of color that represents the nearest color to the one specified with the color parameter. |
nearest_g | The green component of color that represents the nearest color to the one specified with the color parameter. |
nearest_b | The blue component of color that represents the nearest color to the one specified with the color parameter. |
|
staticprotected |
Sets the interpolation mode associated with the graphics.
handle | The graphics handle. |
interpolation_mode | An interpolation mode value (see interpolation_modes.h for more information). |
|
staticprotected |
Sets a value specifying how pixels are offset during rendering of this graphics.
handle | The graphics handle. |
pixel_offst_mode | This property specifies a pixel offset mode value (see pixel_offst_modes.h for more information). |
|
staticprotected |
Measures the specified string when drawn with the specified font and formatted with the specified format.
handle | The graphics handle. |
text | xtd::string to measure. |
font | A font handle that defines the text format of the string. |
width | The width of the text. |
height | The height of the text. |
max_width | The maximum width of the text. |
max_height | The maximum height of the text. |
alignment | The alignment of the text (see string_alignments.h for more information). |
line_alignment | The alignment of the text (see string_alignments.h for more information). |
hot_key_prefix | The hotkey prefix value (see hot_key_prefixes.h for more information). |
trimming | The trimming value for the text (see string_trimmings.h for more information). |
characters_fitted | Number of characters in the string. |
lines_filled | Number of text lines in the string. |
|
staticprotected |
Releases a device context handle obtained by a previous call to the xtd::drawing::native::graphics::get_hdc() method of the graphics.
handle | The graphics handle. |
hdc | Handle to a device context obtained by a previous call to the xtd::drawing::native::graphics::get_hdc() method of the graphics. |
|
staticprotected |
Resets the world transformation matrix of the graphics to the identity matrix.
handle | The graphics handle. |
|
staticprotected |
Restores the state of the graphics to the state represented by a graphics state.
handle | The graphics handle. |
gstate | A graphics state handle that represents the state to which to restore the graphics. |
|
staticprotected |
Applies the specified rotation to the transformation matrix of the graphics in the specified order.
handle | The graphics handle. |
angle | Angle of rotation in degrees. |
order | A matrix order value that specifies whether the rotation is prepended or appended to the transformation matrix (see matrix_orders.h for more information). |
Saves the current state of the graphics and identifies the saved state with a graphics state.
handle | The graphics handle. |
|
staticprotected |
Applies the specified scaling operation to the transformation matrix of the graphics in the specified order.
handle | The graphics handle. |
sx | Scale factor in the x direction. |
sy | Scale factor in the y direction. |
order | A matrix order value that specifies whether the scaling operation is prepended or appended to the transformation matrix (see matrix_orders.h for more information). |
|
staticprotected |
Sets the rendering quality for the graphics.
handle | The graphics handle. |
smoothing_mode | A smoothing mode value (see smoothing_modes.h for more information). |
|
staticprotected |
Sets the gamma correction value for rendering text.
handle | The graphics handle. |
text_contrast | The gamma correction value used for rendering antialiased and ClearType text. |
|
staticprotected |
Sets the rendering mode for text associated with the graphics.
handle | The graphics handle. |
text_rendering_hint | A text rendering hint value (see text_rendering_hints.h for more information). |
Gets a copy of the geometric world transformation for the graphics.
handle | The graphics handle. |
|
staticprotected |
Sets a copy of the geometric world transformation for the graphics.
handle | The graphics handle. |
value | A matrix handle that represents the geometric world transformation for the graphics. |
|
staticprotected |
Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of the graphics in the specified order.
handle | The graphics handle. |
dx | The x-coordinate of the translation. |
dy | The y-coordinate of the translation. |
order | A matrix order value that specifies whether the translation is prepended or appended to the transformation matrix (see matrix_orders.h for more information). |
|
staticprotected |
Trims the specified string for a specified width with the specified font and trimming.
handle | The graphics handle. |
text | xtd::string to measure. |
font | A font handle that defines the text format of the string. |
width | The width of the text. |
trimming | The trimming value for the text (see string_trimmings.h for more information). |
|
staticprotected |
Gets the bounding rectangle of the visible clipping region of the graphics.
handle | The graphics handle. |
x | The x-coordinate of the upper-left corner of the bounding rectangle for the visible clipping region of the graphics. |
y | The y-coordinate of the upper-left corner of the bounding rectangle for the visible clipping region of the graphics. |
width | Width of the bounding rectangle for the visible clipping region of the graphics. |
height | Height of the bounding rectangle for the visible clipping region of the graphics. |