Graphics Class
Summary: Represents the graphics according to the graphics engine used in the current assembly.
Module: aspose.psd
Full Name: aspose.psd.Graphics
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
Graphics(source_image) | Initializes a new instance of the Graphics class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
clip | Region | r/w | Gets or sets the clip region. |
compositing_quality | CompositingQuality | r/w | Gets or sets the compositing quality. |
dpi_x | float | r | Gets the horizontal resolution of this Aspose.PSD.Graphics. |
dpi_y | float | r | Gets the vertical resolution of this Aspose.PSD.Graphics. |
image | Image | r | Gets the image. |
interpolation_mode | InterpolationMode | r/w | Gets or sets the interpolation mode. |
is_in_begin_update_call | bool | r | Gets a value indicating whether graphics is in BeginUpdate call state. |
page_scale | float | r/w | Gets or sets the scaling between world units and page units for this Aspose.PSD.Graphics. |
page_unit | GraphicsUnit | r/w | Gets or sets the unit of measure used for page coordinates in this Aspose.PSD.Graphics. |
paintable_image_options | ImageOptionsBase | r/w | Gets or sets image options, used to create paintable vactor images to draw. |
smoothing_mode | SmoothingMode | r/w | Gets or sets the smoothing mode. |
text_rendering_hint | TextRenderingHint | r/w | Gets or sets the text rendering hint. |
transform | Matrix | r/w | Gets or sets a copy of the geometric world transformation for this Graphics. |
Methods
Name | Description |
---|---|
begin_update() | Starts caching of the following graphics operations. The graphics effects applied afterwards will not be applied immediately instead the EndUpdate will cause applying all the effects at once. |
clear(color) | Clears the graphics surface using the specified color. |
draw_arc(pen, rect, start_angle, sweep_angle) | Draws an arc representing a portion of an ellipse specified by a RectangleF structure. |
draw_arc(pen, rect, start_angle, sweep_angle) | Draws an arc representing a portion of an ellipse specified by a RectangleF structure. |
draw_arc(pen, x, y, width, height, start_angle, sweep_angle) | Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. |
draw_arc(pen, x, y, width, height, start_angle, sweep_angle) | Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. |
draw_bezier(pen, pt1, pt2, pt3, pt4) | Draws a Bézier spline defined by four PointF structures. |
draw_bezier(pen, pt1, pt2, pt3, pt4) | Draws a Bézier spline defined by four PointF structures. |
draw_bezier(pen, x1, y1, x2, y2, x3, y3, x4, y4) | Draws a Bézier spline defined by four ordered pairs of coordinates that represent points. |
draw_beziers(pen, points) | Draws a series of Bézier splines from an array of Point structures. |
draw_beziers(pen, points) | Draws a series of Bézier splines from an array of Point structures. |
draw_closed_curve(pen, points) | Draws a closed cardinal spline defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode. |
draw_closed_curve(pen, points) | Draws a closed cardinal spline defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode. |
draw_closed_curve(pen, points, tension) | Draws a closed cardinal spline defined by an array of PointF structures using a specified tension. This method uses a default FillMode.ALTERNATE fill mode. |
draw_closed_curve(pen, points, tension) | Draws a closed cardinal spline defined by an array of PointF structures using a specified tension. This method uses a default FillMode.ALTERNATE fill mode. |
draw_curve(pen, points) | Draws a cardinal spline through a specified array of PointF structures. This method uses a default tension of 0.5. |
draw_curve(pen, points) | Draws a cardinal spline through a specified array of PointF structures. This method uses a default tension of 0.5. |
draw_curve(pen, points, offset, number_of_segments) | Draws a cardinal spline through a specified array of PointF structures. The drawing begins offset from the beginning of the array. This method uses a default tension of 0.5. |
draw_curve(pen, points, offset, number_of_segments, tension) | Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array. |
draw_curve(pen, points, offset, number_of_segments, tension) | Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array. |
draw_curve(pen, points, tension) | Draws a cardinal spline through a specified array of PointF structures using a specified tension. |
draw_curve(pen, points, tension) | Draws a cardinal spline through a specified array of PointF structures using a specified tension. |
draw_ellipse(pen, rect) | Draws an ellipse defined by a bounding RectangleF. |
draw_ellipse(pen, rect) | Draws an ellipse defined by a bounding RectangleF. |
draw_ellipse(pen, x, y, width, height) | Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width. |
draw_ellipse(pen, x, y, width, height) | Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width. |
draw_image(image, dest_points) | Draws the specified portion of the specified |
draw_image(image, dest_points) | Draws the specified portion of the specified |
draw_image(image, dest_points, src_rect) | Draws the specified portion of the specified |
draw_image(image, dest_points, src_rect) | Draws the specified portion of the specified |
draw_image(image, dest_points, src_rect, src_unit) | Draws the specified portion of the specified |
draw_image(image, dest_points, src_rect, src_unit) | Draws the specified portion of the specified |
draw_image(image, dest_points, src_rect, src_unit, image_attributes) | Draws the specified portion of the specified |
draw_image(image, dest_points, src_rect, src_unit, image_attributes) | Draws the specified portion of the specified |
draw_image(source_image, point) | Draws the specified Graphics.image, using its original physical size, at the specified location. |
draw_image(source_image, point) | Draws the specified Graphics.image, using its original physical size, at the specified location. |
draw_image(source_image, rect) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_destination, graphics_unit) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_destination, graphics_unit) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_destination, graphics_unit, image_attributes) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_destination, graphics_unit, image_attributes) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_source, rect_destination, graphics_unit) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_source, rect_destination, graphics_unit) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_source, rect_destination, graphics_unit, image_attributes) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, rect_source, rect_destination, graphics_unit, image_attributes) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, x, y) | Draws the specified Graphics.image, using its original physical size, at the specified location. |
draw_image(source_image, x, y) | Draws the specified Graphics.image, using its original physical size, at the specified location. |
draw_image(source_image, x, y, width, height) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image(source_image, x, y, width, height) | Draws the specified Graphics.image at the specified location and with the specified size. |
draw_image_unscaled(source_image, point) | Draws a specified image using its original physical size at a specified location. |
draw_image_unscaled(source_image, rect) | Draws a specified image using its original physical size at a specified location. |
draw_image_unscaled(source_image, x, y) | Draws the specified image using its original physical size at the location specified by a coordinate pair. |
draw_image_unscaled(source_image, x, y, width, height) | Draws a specified image using its original physical size at a specified location. |
draw_image_unscaled_and_clipped(source_image, rect) | Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle. |
draw_line(pen, point1, point2) | Draws a line connecting two Point structures. |
draw_line(pen, point1, point2) | Draws a line connecting two Point structures. |
draw_line(pen, x1, y1, x2, y2) | Draws a line connecting the two points specified by the coordinate pairs. |
draw_line(pen, x1, y1, x2, y2) | Draws a line connecting the two points specified by the coordinate pairs. |
draw_lines(pen, points) | Draws a series of line segments that connect an array of Point structures. |
draw_lines(pen, points) | Draws a series of line segments that connect an array of Point structures. |
draw_path(pen, path) | Draws a GraphicsPath. |
draw_pie(pen, rect, start_angle, sweep_angle) | Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines. |
draw_pie(pen, rect, start_angle, sweep_angle) | Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines. |
draw_pie(pen, x, y, width, height, start_angle, sweep_angle) | Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines. |
draw_pie(pen, x, y, width, height, start_angle, sweep_angle) | Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines. |
draw_polygon(pen, points) | Draws a polygon defined by an array of PointF structures. |
draw_polygon(pen, points) | Draws a polygon defined by an array of PointF structures. |
draw_rectangle(pen, rect) | Draws a rectangle specified by a RectangleF structure. |
draw_rectangle(pen, rect) | Draws a rectangle specified by a RectangleF structure. |
draw_rectangle(pen, x, y, width, height) | Draws a rectangle specified by a coordinate pair, a width, and a height. |
draw_rectangle(pen, x, y, width, height) | Draws a rectangle specified by a coordinate pair, a width, and a height. |
draw_rectangles(pen, rects) | Draws a series of rectangles specified by RectangleF structures. |
draw_rectangles(pen, rects) | Draws a series of rectangles specified by RectangleF structures. |
draw_string(s, font, brush, layout_rectangle) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects. |
draw_string(s, font, brush, layout_rectangle, format) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat. |
draw_string(s, font, brush, point) | Draws the specified text string at the specified location with the specified Brush and Font objects. |
draw_string(s, font, brush, point, format) | Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat. |
draw_string(s, font, brush, x, y) | Draws the specified text string at the specified location with the specified Brush and Font objects. |
draw_string(s, font, brush, x, y, format) | Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat. |
end_update() | Finishes caching of the graphics operations started after BeginUpdate was called. The preceding graphics operations will be applied at once when calling this method. |
fill_closed_curve(brush, points) | Fills the interior of a closed cardinal spline curve defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode. |
fill_closed_curve(brush, points) | Fills the interior of a closed cardinal spline curve defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode. |
fill_closed_curve(brush, points, fillmode) | Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode. This method uses a default tension of 0.5. |
fill_closed_curve(brush, points, fillmode) | Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode. This method uses a default tension of 0.5. |
fill_closed_curve(brush, points, fillmode, tension) | Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension. |
fill_closed_curve(brush, points, fillmode, tension) | Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension. |
fill_ellipse(brush, rect) | Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure. |
fill_ellipse(brush, rect) | Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure. |
fill_ellipse(brush, x, y, width, height) | Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height. |
fill_ellipse(brush, x, y, width, height) | Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height. |
fill_path(brush, path) | Fills the interior of a GraphicsPath. |
fill_pie(brush, rect, start_angle, sweep_angle) | Fills the interior of a pie section defined by an ellipse specified by a RectangleF structure and two radial lines. |
fill_pie(brush, rect, start_angle, sweep_angle) | Fills the interior of a pie section defined by an ellipse specified by a RectangleF structure and two radial lines. |
fill_pie(brush, x, y, width, height, start_angle, 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. |
fill_pie(brush, x, y, width, height, start_angle, 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. |
fill_polygon(brush, points) | Fills the interior of a polygon defined by an array of points specified by PointF structures and FillMode.ALTERNATE. |
fill_polygon(brush, points) | Fills the interior of a polygon defined by an array of points specified by PointF structures and FillMode.ALTERNATE. |
fill_polygon(brush, points, fill_mode) | Fills the interior of a polygon defined by an array of points specified by PointF structures using the specified fill mode. |
fill_polygon(brush, points, fill_mode) | Fills the interior of a polygon defined by an array of points specified by PointF structures using the specified fill mode. |
fill_rectangle(brush, rect) | Fills the interior of a rectangle specified by a Rectangle structure. |
fill_rectangle(brush, rect) | Fills the interior of a rectangle specified by a Rectangle structure. |
fill_rectangle(brush, x, y, width, height) | Fills the interior of a rectangle specified by a pair of coordinates, a width and a height. |
fill_rectangle(brush, x, y, width, height) | Fills the interior of a rectangle specified by a pair of coordinates, a width and a height. |
fill_rectangles(brush, rects) | Fills the interiors of a series of rectangles specified by Rectangle structures. |
fill_rectangles(brush, rects) | Fills the interiors of a series of rectangles specified by Rectangle structures. |
fill_region(brush, region) | Fills the interior of a Region. |
multiply_transform(matrix) | Multiplies the Matrix that represents the local geometric transform of this Graphics by the specified Matrix by prepending the specified Matrix. |
multiply_transform(matrix, order) | Multiplies the Matrix that represents the local geometric transform of this Graphics by the specified Matrix in the specified order. |
reset_transform() | Resets the Graphics.transform property to identity. |
rotate_transform(angle) | Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform. |
rotate_transform(angle, order) | Rotates the local geometric transform by the specified amount in the specified order. |
scale_transform(sx, sy) | Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform. |
scale_transform(sx, sy, order) | Scales the local geometric transform by the specified amounts in the specified order. |
translate_transform(dx, dy) | Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform. |
translate_transform(dx, dy, order) | Translates the local geometric transform by the specified dimensions in the specified order. |
Constructor: Graphics(source_image)
Graphics(source_image)
Initializes a new instance of the Graphics class.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The source image. |
Method: clear(color)
clear(color)
Clears the graphics surface using the specified color.
Parameters:
Parameter | Type | Description |
---|---|---|
color | Color | The color to clear the graphics surface by. |
Method: draw_arc(pen, rect, start_angle, sweep_angle)
draw_arc(pen, rect, start_angle, sweep_angle)
Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the arc. |
rect | RectangleF | RectangleF structure that defines the boundaries of the ellipse. |
start_angle | float | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | float | Angle in degrees measured clockwise from the |
Method: draw_arc(pen, rect, start_angle, sweep_angle)
draw_arc(pen, rect, start_angle, sweep_angle)
Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the arc. |
rect | Rectangle | RectangleF structure that defines the boundaries of the ellipse. |
start_angle | float | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | float | Angle in degrees measured clockwise from the |
Method: draw_arc(pen, x, y, width, height, start_angle, sweep_angle)
draw_arc(pen, x, y, width, height, start_angle, sweep_angle)
Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the arc. |
x | float | The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
y | float | The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
width | float | Width of the rectangle that defines the ellipse. |
height | float | Height of the rectangle that defines the ellipse. |
start_angle | float | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | float | Angle in degrees measured clockwise from the |
Method: draw_arc(pen, x, y, width, height, start_angle, sweep_angle)
draw_arc(pen, x, y, width, height, start_angle, sweep_angle)
Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the arc. |
x | int | The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
y | int | The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
width | int | Width of the rectangle that defines the ellipse. |
height | int | Height of the rectangle that defines the ellipse. |
start_angle | int | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweep_angle | int | Angle in degrees measured clockwise from the |
Method: draw_bezier(pen, pt1, pt2, pt3, pt4)
draw_bezier(pen, pt1, pt2, pt3, pt4)
Draws a Bézier spline defined by four PointF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
pt1 | PointF | PointF structure that represents the starting point of the curve. |
pt2 | PointF | PointF structure that represents the first control point for the curve. |
pt3 | PointF | PointF structure that represents the second control point for the curve. |
pt4 | PointF | PointF structure that represents the ending point of the curve. |
Method: draw_bezier(pen, pt1, pt2, pt3, pt4)
draw_bezier(pen, pt1, pt2, pt3, pt4)
Draws a Bézier spline defined by four PointF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
pt1 | Point | PointF structure that represents the starting point of the curve. |
pt2 | Point | PointF structure that represents the first control point for the curve. |
pt3 | Point | PointF structure that represents the second control point for the curve. |
pt4 | Point | PointF structure that represents the ending point of the curve. |
Method: draw_bezier(pen, x1, y1, x2, y2, x3, y3, x4, y4)
draw_bezier(pen, x1, y1, x2, y2, x3, y3, x4, y4)
Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
x1 | float | The x-coordinate of the starting point of the curve. |
y1 | float | The y-coordinate of the starting point of the curve. |
x2 | float | The x-coordinate of the first control point of the curve. |
y2 | float | The y-coordinate of the first control point of the curve. |
x3 | float | The x-coordinate of the second control point of the curve. |
y3 | float | The y-coordinate of the second control point of the curve. |
x4 | float | The x-coordinate of the ending point of the curve. |
y4 | float | The y-coordinate of the ending point of the curve. |
Method: draw_beziers(pen, points)
draw_beziers(pen, points)
Draws a series of Bézier splines from an array of Point structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | Point[] | Array of Point structures that represent the points that determine the curve. |
Method: draw_beziers(pen, points)
draw_beziers(pen, points)
Draws a series of Bézier splines from an array of Point structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | PointF[] | Array of Point structures that represent the points that determine the curve. |
Method: draw_closed_curve(pen, points)
draw_closed_curve(pen, points)
Draws a closed cardinal spline defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
Method: draw_closed_curve(pen, points)
draw_closed_curve(pen, points)
Draws a closed cardinal spline defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | Array of PointF structures that define the spline. |
Method: draw_closed_curve(pen, points, tension)
draw_closed_curve(pen, points, tension)
Draws a closed cardinal spline defined by an array of PointF structures using a specified tension. This method uses a default FillMode.ALTERNATE fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: draw_closed_curve(pen, points, tension)
draw_closed_curve(pen, points, tension)
Draws a closed cardinal spline defined by an array of PointF structures using a specified tension. This method uses a default FillMode.ALTERNATE fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | Array of PointF structures that define the spline. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: draw_curve(pen, points)
draw_curve(pen, points)
Draws a cardinal spline through a specified array of PointF structures. This method uses a default tension of 0.5.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
Method: draw_curve(pen, points)
draw_curve(pen, points)
Draws a cardinal spline through a specified array of PointF structures. This method uses a default tension of 0.5.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | Array of PointF structures that define the spline. |
Method: draw_curve(pen, points, offset, number_of_segments)
draw_curve(pen, points, offset, number_of_segments)
Draws a cardinal spline through a specified array of PointF structures. The drawing begins offset from the beginning of the array.
This method uses a default tension of 0.5.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
offset | int | Offset from the first element in the array of the |
number_of_segments | int | Number of segments after the starting point to include in the curve. |
Method: draw_curve(pen, points, offset, number_of_segments, tension)
draw_curve(pen, points, offset, number_of_segments, tension)
Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
offset | int | Offset from the first element in the array of the |
number_of_segments | int | Number of segments after the starting point to include in the curve. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: draw_curve(pen, points, offset, number_of_segments, tension)
draw_curve(pen, points, offset, number_of_segments, tension)
Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | Array of PointF structures that define the spline. |
offset | int | Offset from the first element in the array of the |
number_of_segments | int | Number of segments after the starting point to include in the curve. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: draw_curve(pen, points, tension)
draw_curve(pen, points, tension)
Draws a cardinal spline through a specified array of PointF structures using a specified tension.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that represent the points that define the curve. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: draw_curve(pen, points, tension)
draw_curve(pen, points, tension)
Draws a cardinal spline through a specified array of PointF structures using a specified tension.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | Array of PointF structures that represent the points that define the curve. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: draw_ellipse(pen, rect)
draw_ellipse(pen, rect)
Draws an ellipse defined by a bounding RectangleF.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the ellipse. |
rect | RectangleF | RectangleF structure that defines the boundaries of the ellipse. |
Method: draw_ellipse(pen, rect)
draw_ellipse(pen, rect)
Draws an ellipse defined by a bounding RectangleF.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the ellipse. |
rect | Rectangle | RectangleF structure that defines the boundaries of the ellipse. |
Method: draw_ellipse(pen, x, y, width, height)
draw_ellipse(pen, x, y, width, height)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the ellipse. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | float | Width of the bounding rectangle that defines the ellipse. |
height | float | Height of the bounding rectangle that defines the ellipse. |
Method: draw_ellipse(pen, x, y, width, height)
draw_ellipse(pen, x, y, width, height)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the ellipse. |
x | int | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | int | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | int | Width of the bounding rectangle that defines the ellipse. |
height | int | Height of the bounding rectangle that defines the ellipse. |
Method: draw_image(image, dest_points)
draw_image(image, dest_points)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | Point[] | Array of three PointF structures that define a parallelogram. |
Method: draw_image(image, dest_points)
draw_image(image, dest_points)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | PointF[] | Array of three PointF structures that define a parallelogram. |
Method: draw_image(image, dest_points, src_rect)
draw_image(image, dest_points, src_rect)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | Point[] | Array of three PointF structures that define a parallelogram. |
src_rect | Rectangle | The source rectangle. |
Method: draw_image(image, dest_points, src_rect)
draw_image(image, dest_points, src_rect)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | PointF[] | Array of three PointF structures that define a parallelogram. |
src_rect | RectangleF | The source rectangle. |
Method: draw_image(image, dest_points, src_rect, src_unit)
draw_image(image, dest_points, src_rect, src_unit)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | Point[] | Array of three PointF structures that define a parallelogram. |
src_rect | Rectangle | The source rectangle. |
src_unit | GraphicsUnit | The units of measure. |
Method: draw_image(image, dest_points, src_rect, src_unit)
draw_image(image, dest_points, src_rect, src_unit)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | PointF[] | Array of three PointF structures that define a parallelogram. |
src_rect | RectangleF | The source rectangle. |
src_unit | GraphicsUnit | The units of measure. |
Method: draw_image(image, dest_points, src_rect, src_unit, image_attributes)
draw_image(image, dest_points, src_rect, src_unit, image_attributes)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | Point[] | Array of three PointF structures that define a parallelogram. |
src_rect | Rectangle | The source rectangle. |
src_unit | GraphicsUnit | The units of measure. |
image_attributes | ImageAttributes | The image attributes. |
Method: draw_image(image, dest_points, src_rect, src_unit, image_attributes)
draw_image(image, dest_points, src_rect, src_unit, image_attributes)
Draws the specified portion of the specified
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image to draw. |
dest_points | PointF[] | Array of three PointF structures that define a parallelogram. |
src_rect | RectangleF | The source rectangle. |
src_unit | GraphicsUnit | The units of measure. |
image_attributes | ImageAttributes | The image attributes. |
Method: draw_image(source_image, point)
draw_image(source_image, point)
Draws the specified Graphics.image, using its original physical size, at the specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
point | PointF | PointF structure that represents the upper-left corner of the drawn image. |
Method: draw_image(source_image, point)
draw_image(source_image, point)
Draws the specified Graphics.image, using its original physical size, at the specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
point | Point | PointF structure that represents the upper-left corner of the drawn image. |
Method: draw_image(source_image, rect)
draw_image(source_image, rect)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect | RectangleF | RectangleF structure that specifies the location and size of the drawn image. |
Method: draw_image(source_image, rect)
draw_image(source_image, rect)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect | Rectangle | RectangleF structure that specifies the location and size of the drawn image. |
Method: draw_image(source_image, rect_destination, graphics_unit)
draw_image(source_image, rect_destination, graphics_unit)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_destination | Rectangle | The destination rectangle. |
graphics_unit | GraphicsUnit | The graphics unit. |
Method: draw_image(source_image, rect_destination, graphics_unit)
draw_image(source_image, rect_destination, graphics_unit)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_destination | RectangleF | The destination rectangle. |
graphics_unit | GraphicsUnit | The graphics unit. |
Method: draw_image(source_image, rect_destination, graphics_unit, image_attributes)
draw_image(source_image, rect_destination, graphics_unit, image_attributes)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_destination | Rectangle | The destination rectangle. |
graphics_unit | GraphicsUnit | The graphics unit. |
image_attributes | ImageAttributes | The image attributes. |
Method: draw_image(source_image, rect_destination, graphics_unit, image_attributes)
draw_image(source_image, rect_destination, graphics_unit, image_attributes)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_destination | RectangleF | The destination rectangle. |
graphics_unit | GraphicsUnit | The graphics unit. |
image_attributes | ImageAttributes | The image attributes. |
Method: draw_image(source_image, rect_source, rect_destination, graphics_unit)
draw_image(source_image, rect_source, rect_destination, graphics_unit)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_source | Rectangle | The rect source. |
rect_destination | Rectangle | The rect destination. |
graphics_unit | GraphicsUnit | The graphics unit. |
Method: draw_image(source_image, rect_source, rect_destination, graphics_unit)
draw_image(source_image, rect_source, rect_destination, graphics_unit)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_source | RectangleF | The rect source. |
rect_destination | RectangleF | The rect destination. |
graphics_unit | GraphicsUnit | The graphics unit. |
Method: draw_image(source_image, rect_source, rect_destination, graphics_unit, image_attributes)
draw_image(source_image, rect_source, rect_destination, graphics_unit, image_attributes)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_source | Rectangle | The rect source. |
rect_destination | Rectangle | The rect destination. |
graphics_unit | GraphicsUnit | The graphics unit. |
image_attributes | ImageAttributes | The image attributes. |
Method: draw_image(source_image, rect_source, rect_destination, graphics_unit, image_attributes)
draw_image(source_image, rect_source, rect_destination, graphics_unit, image_attributes)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect_source | RectangleF | The rect source. |
rect_destination | RectangleF | The rect destination. |
graphics_unit | GraphicsUnit | The graphics unit. |
image_attributes | ImageAttributes | The image attributes. |
Method: draw_image(source_image, x, y)
draw_image(source_image, x, y)
Draws the specified Graphics.image, using its original physical size, at the specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
x | float | The x-coordinate of the upper-left corner of the drawn image. |
y | float | The y-coordinate of the upper-left corner of the drawn image. |
Method: draw_image(source_image, x, y)
draw_image(source_image, x, y)
Draws the specified Graphics.image, using its original physical size, at the specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
Method: draw_image(source_image, x, y, width, height)
draw_image(source_image, x, y, width, height)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
x | float | The x-coordinate of the upper-left corner of the drawn image. |
y | float | The y-coordinate of the upper-left corner of the drawn image. |
width | float | Width of the drawn image. |
height | float | Height of the drawn image. |
Method: draw_image(source_image, x, y, width, height)
draw_image(source_image, x, y, width, height)
Draws the specified Graphics.image at the specified location and with the specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
width | int | Width of the drawn image. |
height | int | Height of the drawn image. |
Method: draw_image_unscaled(source_image, point)
draw_image_unscaled(source_image, point)
Draws a specified image using its original physical size at a specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
point | Point | Point structure that specifies the upper-left corner of the drawn image. |
Method: draw_image_unscaled(source_image, rect)
draw_image_unscaled(source_image, rect)
Draws a specified image using its original physical size at a specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect | Rectangle | Rectangle that specifies the upper-left corner of the drawn image. The X and Y properties of the rectangle specify the upper-left corner. The Width and Height properties are ignored. |
Method: draw_image_unscaled(source_image, x, y)
draw_image_unscaled(source_image, x, y)
Draws the specified image using its original physical size at the location specified by a coordinate pair.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
Method: draw_image_unscaled(source_image, x, y, width, height)
draw_image_unscaled(source_image, x, y, width, height)
Draws a specified image using its original physical size at a specified location.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
width | int | The parameter is not used. |
height | int | The parameter is not used. |
Method: draw_image_unscaled_and_clipped(source_image, rect)
draw_image_unscaled_and_clipped(source_image, rect)
Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
source_image | Image | The image to draw with. |
rect | Rectangle | The Rectangle in which to draw the image. |
Method: draw_line(pen, point1, point2)
draw_line(pen, point1, point2)
Draws a line connecting two Point structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
point1 | Point | Point structure that represents the first point to connect. |
point2 | Point | Point structure that represents the second point to connect. |
Method: draw_line(pen, point1, point2)
draw_line(pen, point1, point2)
Draws a line connecting two Point structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
point1 | PointF | Point structure that represents the first point to connect. |
point2 | PointF | Point structure that represents the second point to connect. |
Method: draw_line(pen, x1, y1, x2, y2)
draw_line(pen, x1, y1, x2, y2)
Draws a line connecting the two points specified by the coordinate pairs.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
x1 | int | The x-coordinate of the first point. |
y1 | int | The y-coordinate of the first point. |
x2 | int | The x-coordinate of the second point. |
y2 | int | The y-coordinate of the second point. |
Method: draw_line(pen, x1, y1, x2, y2)
draw_line(pen, x1, y1, x2, y2)
Draws a line connecting the two points specified by the coordinate pairs.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
x1 | float | The x-coordinate of the first point. |
y1 | float | The y-coordinate of the first point. |
x2 | float | The x-coordinate of the second point. |
y2 | float | The y-coordinate of the second point. |
Method: draw_lines(pen, points)
draw_lines(pen, points)
Draws a series of line segments that connect an array of Point structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line segments. |
points | Point[] | Array of Point structures that represent the points to connect. |
Method: draw_lines(pen, points)
draw_lines(pen, points)
Draws a series of line segments that connect an array of Point structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line segments. |
points | PointF[] | Array of Point structures that represent the points to connect. |
Method: draw_path(pen, path)
draw_path(pen, path)
Draws a GraphicsPath.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the path. |
path | GraphicsPath | GraphicsPath to draw. |
Method: draw_pie(pen, rect, start_angle, sweep_angle)
draw_pie(pen, rect, start_angle, sweep_angle)
Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the pie shape. |
rect | RectangleF | RectangleF structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | float | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | float | Angle measured in degrees clockwise from the |
Method: draw_pie(pen, rect, start_angle, sweep_angle)
draw_pie(pen, rect, start_angle, sweep_angle)
Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the pie shape. |
rect | Rectangle | RectangleF structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | float | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | float | Angle measured in degrees clockwise from the |
Method: draw_pie(pen, x, y, width, height, start_angle, sweep_angle)
draw_pie(pen, x, y, width, height, start_angle, sweep_angle)
Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the pie shape. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
width | float | Width of the bounding rectangle that defines the ellipse from which the pie shape comes. |
height | float | Height of the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | float | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | float | Angle measured in degrees clockwise from the |
Method: draw_pie(pen, x, y, width, height, start_angle, sweep_angle)
draw_pie(pen, x, y, width, height, start_angle, sweep_angle)
Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the pie shape. |
x | int | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
y | int | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
width | int | Width of the bounding rectangle that defines the ellipse from which the pie shape comes. |
height | int | Height of the bounding rectangle that defines the ellipse from which the pie shape comes. |
start_angle | int | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweep_angle | int | Angle measured in degrees clockwise from the |
Method: draw_polygon(pen, points)
draw_polygon(pen, points)
Draws a polygon defined by an array of PointF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the polygon. |
points | PointF[] | Array of PointF structures that represent the vertices of the polygon. |
Method: draw_polygon(pen, points)
draw_polygon(pen, points)
Draws a polygon defined by an array of PointF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the polygon. |
points | Point[] | Array of PointF structures that represent the vertices of the polygon. |
Method: draw_rectangle(pen, rect)
draw_rectangle(pen, rect)
Draws a rectangle specified by a RectangleF structure.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | A Pen that determines the color, width, and style of the rectangle. |
rect | RectangleF | A RectangleF structure that represents the rectangle to draw. |
Method: draw_rectangle(pen, rect)
draw_rectangle(pen, rect)
Draws a rectangle specified by a RectangleF structure.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | A Pen that determines the color, width, and style of the rectangle. |
rect | Rectangle | A RectangleF structure that represents the rectangle to draw. |
Method: draw_rectangle(pen, x, y, width, height)
draw_rectangle(pen, x, y, width, height)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | A Pen that determines the color, width, and style of the rectangle. |
x | float | The x-coordinate of the upper-left corner of the rectangle to draw. |
y | float | The y-coordinate of the upper-left corner of the rectangle to draw. |
width | float | The width of the rectangle to draw. |
height | float | The height of the rectangle to draw. |
Method: draw_rectangle(pen, x, y, width, height)
draw_rectangle(pen, x, y, width, height)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | A Pen that determines the color, width, and style of the rectangle. |
x | int | The x-coordinate of the upper-left corner of the rectangle to draw. |
y | int | The y-coordinate of the upper-left corner of the rectangle to draw. |
width | int | The width of the rectangle to draw. |
height | int | The height of the rectangle to draw. |
Method: draw_rectangles(pen, rects)
draw_rectangles(pen, rects)
Draws a series of rectangles specified by RectangleF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the outlines of the rectangles. |
rects | RectangleF[] | Array of RectangleF structures that represent the rectangles to draw. |
Method: draw_rectangles(pen, rects)
draw_rectangles(pen, rects)
Draws a series of rectangles specified by RectangleF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the outlines of the rectangles. |
rects | Rectangle[] | Array of RectangleF structures that represent the rectangles to draw. |
Method: draw_string(s, font, brush, layout_rectangle)
draw_string(s, font, brush, layout_rectangle)
Draws the specified text string in the specified rectangle with the specified Brush and Font objects.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
layout_rectangle | RectangleF | RectangleF structure that specifies the location of the drawn text. |
Method: draw_string(s, font, brush, layout_rectangle, format)
draw_string(s, font, brush, layout_rectangle, format)
Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
layout_rectangle | RectangleF | RectangleF structure that specifies the location of the drawn text. |
format | StringFormat | StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
Method: draw_string(s, font, brush, point)
draw_string(s, font, brush, point)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
point | PointF | PointF structure that specifies the upper-left corner of the drawn text. |
Method: draw_string(s, font, brush, point, format)
draw_string(s, font, brush, point, format)
Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
point | PointF | PointF structure that specifies the upper-left corner of the drawn text. |
format | StringFormat | StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
Method: draw_string(s, font, brush, x, y)
draw_string(s, font, brush, x, y)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
x | float | The x-coordinate of the upper-left corner of the drawn text. |
y | float | The y-coordinate of the upper-left corner of the drawn text. |
Method: draw_string(s, font, brush, x, y, format)
draw_string(s, font, brush, x, y, format)
Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
x | float | The x-coordinate of the upper-left corner of the drawn text. |
y | float | The y-coordinate of the upper-left corner of the drawn text. |
format | StringFormat | StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
Method: fill_closed_curve(brush, points)
fill_closed_curve(brush, points)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that define the spline. |
Method: fill_closed_curve(brush, points)
fill_closed_curve(brush, points)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures. This method uses a default tension of 0.5 and FillMode.ALTERNATE fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of PointF structures that define the spline. |
Method: fill_closed_curve(brush, points, fillmode)
fill_closed_curve(brush, points, fillmode)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode. This method uses a default tension of 0.5.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that define the spline. |
fillmode | FillMode | Member of the FillMode enumeration that determines how the curve is filled. |
Method: fill_closed_curve(brush, points, fillmode)
fill_closed_curve(brush, points, fillmode)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode. This method uses a default tension of 0.5.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of PointF structures that define the spline. |
fillmode | FillMode | Member of the FillMode enumeration that determines how the curve is filled. |
Method: fill_closed_curve(brush, points, fillmode, tension)
fill_closed_curve(brush, points, fillmode, tension)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | A Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that define the spline. |
fillmode | FillMode | Member of the FillMode enumeration that determines how the curve is filled. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: fill_closed_curve(brush, points, fillmode, tension)
fill_closed_curve(brush, points, fillmode, tension)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | A Brush that determines the characteristics of the fill. |
points | Point[] | Array of PointF structures that define the spline. |
fillmode | FillMode | Member of the FillMode enumeration that determines how the curve is filled. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
Method: fill_ellipse(brush, rect)
fill_ellipse(brush, rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | RectangleF | RectangleF structure that represents the bounding rectangle that defines the ellipse. |
Method: fill_ellipse(brush, rect)
fill_ellipse(brush, rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | Rectangle | RectangleF structure that represents the bounding rectangle that defines the ellipse. |
Method: fill_ellipse(brush, x, y, width, height)
fill_ellipse(brush, x, y, width, height)
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | float | Width of the bounding rectangle that defines the ellipse. |
height | float | Height of the bounding rectangle that defines the ellipse. |
Method: fill_ellipse(brush, x, y, width, height)
fill_ellipse(brush, x, y, width, height)
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | int | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | int | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | int | Width of the bounding rectangle that defines the ellipse. |
height | int | Height of the bounding rectangle that defines the ellipse. |
Method: fill_path(brush, path)
fill_path(brush, path)
Fills the interior of a GraphicsPath.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
path | GraphicsPath | GraphicsPath that represents the path to fill. |
Method: fill_pie(brush, rect, start_angle, sweep_angle)
fill_pie(brush, rect, start_angle, sweep_angle)
Fills the interior of a pie section defined by an ellipse specified by a RectangleF structure and two radial lines.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | Rectangle | Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | float | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | float | Angle in degrees measured clockwise from the |
Method: fill_pie(brush, rect, start_angle, sweep_angle)
fill_pie(brush, rect, start_angle, sweep_angle)
Fills the interior of a pie section defined by an ellipse specified by a RectangleF structure and two radial lines.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | RectangleF | Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | float | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | float | Angle in degrees measured clockwise from the |
Method: fill_pie(brush, x, y, width, height, start_angle, sweep_angle)
fill_pie(brush, x, y, width, height, start_angle, 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.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
width | float | Width of the bounding rectangle that defines the ellipse from which the pie section comes. |
height | float | Height of the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | float | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | float | Angle in degrees measured clockwise from the |
Method: fill_pie(brush, x, y, width, height, start_angle, sweep_angle)
fill_pie(brush, x, y, width, height, start_angle, 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.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | int | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
y | int | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
width | int | Width of the bounding rectangle that defines the ellipse from which the pie section comes. |
height | int | Height of the bounding rectangle that defines the ellipse from which the pie section comes. |
start_angle | int | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweep_angle | int | Angle in degrees measured clockwise from the |
Method: fill_polygon(brush, points)
fill_polygon(brush, points)
Fills the interior of a polygon defined by an array of points specified by PointF structures and FillMode.ALTERNATE.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that represent the vertices of the polygon to fill. |
Method: fill_polygon(brush, points)
fill_polygon(brush, points)
Fills the interior of a polygon defined by an array of points specified by PointF structures and FillMode.ALTERNATE.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of PointF structures that represent the vertices of the polygon to fill. |
Method: fill_polygon(brush, points, fill_mode)
fill_polygon(brush, points, fill_mode)
Fills the interior of a polygon defined by an array of points specified by PointF structures using the specified fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that represent the vertices of the polygon to fill. |
fill_mode | FillMode | Member of the FillMode enumeration that determines the style of the fill. |
Method: fill_polygon(brush, points, fill_mode)
fill_polygon(brush, points, fill_mode)
Fills the interior of a polygon defined by an array of points specified by PointF structures using the specified fill mode.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of PointF structures that represent the vertices of the polygon to fill. |
fill_mode | FillMode | Member of the FillMode enumeration that determines the style of the fill. |
Method: fill_rectangle(brush, rect)
fill_rectangle(brush, rect)
Fills the interior of a rectangle specified by a Rectangle structure.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | Rectangle | Rectangle structure that represents the rectangle to fill. |
Method: fill_rectangle(brush, rect)
fill_rectangle(brush, rect)
Fills the interior of a rectangle specified by a Rectangle structure.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | RectangleF | Rectangle structure that represents the rectangle to fill. |
Method: fill_rectangle(brush, x, y, width, height)
fill_rectangle(brush, x, y, width, height)
Fills the interior of a rectangle specified by a pair of coordinates, a width and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | float | The x-coordinate of the upper-left corner of the rectangle to fill. |
y | float | The y-coordinate of the upper-left corner of the rectangle to fill. |
width | float | Width of the rectangle to fill. |
height | float | Height of the rectangle to fill. |
Method: fill_rectangle(brush, x, y, width, height)
fill_rectangle(brush, x, y, width, height)
Fills the interior of a rectangle specified by a pair of coordinates, a width and a height.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | int | The x-coordinate of the upper-left corner of the rectangle to fill. |
y | int | The y-coordinate of the upper-left corner of the rectangle to fill. |
width | int | Width of the rectangle to fill. |
height | int | Height of the rectangle to fill. |
Method: fill_rectangles(brush, rects)
fill_rectangles(brush, rects)
Fills the interiors of a series of rectangles specified by Rectangle structures.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rects | Rectangle[] | Array of Rectangle structures that represent the rectangles to fill. |
Method: fill_rectangles(brush, rects)
fill_rectangles(brush, rects)
Fills the interiors of a series of rectangles specified by Rectangle structures.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rects | RectangleF[] | Array of Rectangle structures that represent the rectangles to fill. |
Method: fill_region(brush, region)
fill_region(brush, region)
Fills the interior of a Region.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
region | Region | Region that represents the area to fill. |
Method: multiply_transform(matrix)
multiply_transform(matrix)
Multiplies the Matrix that represents the local geometric transform of this Graphics by the specified Matrix by prepending the specified Matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The Matrix by which to multiply the geometric transform. |
Method: multiply_transform(matrix, order)
multiply_transform(matrix, order)
Multiplies the Matrix that represents the local geometric transform of this Graphics by the specified Matrix in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The Matrix by which to multiply the geometric transform. |
order | MatrixOrder | A MatrixOrder that specifies in which order to multiply the two matrices. |
Method: rotate_transform(angle)
rotate_transform(angle)
Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform.
Parameters:
Parameter | Type | Description |
---|---|---|
angle | float | The angle of rotation. |
Method: rotate_transform(angle, order)
rotate_transform(angle, order)
Rotates the local geometric transform by the specified amount in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
angle | float | The angle of rotation. |
order | MatrixOrder | A MatrixOrder that specifies whether to append or prepend the rotation matrix. |
Method: scale_transform(sx, sy)
scale_transform(sx, sy)
Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.
Parameters:
Parameter | Type | Description |
---|---|---|
sx | float | The amount by which to scale the transform in the x-axis direction. |
sy | float | The amount by which to scale the transform in the y-axis direction. |
Method: scale_transform(sx, sy, order)
scale_transform(sx, sy, order)
Scales the local geometric transform by the specified amounts in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
sx | float | The amount by which to scale the transform in the x-axis direction. |
sy | float | The amount by which to scale the transform in the y-axis direction. |
order | MatrixOrder | A MatrixOrder that specifies whether to append or prepend the scaling matrix. |
Method: translate_transform(dx, dy)
translate_transform(dx, dy)
Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform.
Parameters:
Parameter | Type | Description |
---|---|---|
dx | float | The value of the translation in x. |
dy | float | The value of the translation in y. |
Method: translate_transform(dx, dy, order)
translate_transform(dx, dy, order)
Translates the local geometric transform by the specified dimensions in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
dx | float | The value of the translation in x. |
dy | float | The value of the translation in y. |
order | MatrixOrder | The order (prepend or append) in which to apply the translation. |