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.4.0

Constructors

NameDescription
Graphics(source_image)Initializes a new instance of the Graphics class.

Properties

NameTypeAccessDescription
clipRegionr/wGets or sets the clip region.
compositing_qualityCompositingQualityr/wGets or sets the compositing quality.
dpi_xfloatrGets the horizontal resolution of this Aspose.PSD.Graphics.
dpi_yfloatrGets the vertical resolution of this Aspose.PSD.Graphics.
imageImagerGets the image.
interpolation_modeInterpolationModer/wGets or sets the interpolation mode.
is_in_begin_update_callboolrGets a value indicating whether graphics is in BeginUpdate call state.
page_scalefloatr/wGets or sets the scaling between world units and page units for this Aspose.PSD.Graphics.
page_unitGraphicsUnitr/wGets or sets the unit of measure used for page coordinates in this Aspose.PSD.Graphics.
paintable_image_optionsImageOptionsBaser/wGets or sets image options, used to create paintable vactor images to draw.
smoothing_modeSmoothingModer/wGets or sets the smoothing mode.
text_rendering_hintTextRenderingHintr/wGets or sets the text rendering hint.
transformMatrixr/wGets or sets a copy of the geometric world transformation for this Graphics.

Methods

NameDescription
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 at the specified location and with the specified size.
draw_image(image, dest_points)Draws the specified portion of the specified at the specified location and with the specified size.
draw_image(image, dest_points, src_rect)Draws the specified portion of the specified at the specified location and with the specified size.
draw_image(image, dest_points, src_rect)Draws the specified portion of the specified at the specified location and with the specified size.
draw_image(image, dest_points, src_rect, src_unit)Draws the specified portion of the specified at the specified location and with the specified size.
draw_image(image, dest_points, src_rect, src_unit)Draws the specified portion of the specified at the specified location and with the specified size.
draw_image(image, dest_points, src_rect, src_unit, image_attributes)Draws the specified portion of the specified at the specified location and with the specified size.
draw_image(image, dest_points, src_rect, src_unit, image_attributes)Draws the specified portion of the specified at the specified location and with the specified size.
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:

ParameterTypeDescription
source_imageImageThe source image.

Method: clear(color)

 clear(color) 

Clears the graphics surface using the specified color.

Parameters:

ParameterTypeDescription
colorColorThe 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the arc.
rectRectangleFRectangleF structure that defines the boundaries of the ellipse.
start_anglefloatAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweep_anglefloatAngle in degrees measured clockwise from the parameter to ending point of the arc.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the arc.
rectRectangleRectangleF structure that defines the boundaries of the ellipse.
start_anglefloatAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweep_anglefloatAngle in degrees measured clockwise from the parameter to ending point of the arc.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the arc.
xfloatThe x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
yfloatThe y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
widthfloatWidth of the rectangle that defines the ellipse.
heightfloatHeight of the rectangle that defines the ellipse.
start_anglefloatAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweep_anglefloatAngle in degrees measured clockwise from the parameter to ending point of the arc.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the arc.
xintThe x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
yintThe y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
widthintWidth of the rectangle that defines the ellipse.
heightintHeight of the rectangle that defines the ellipse.
start_angleintAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweep_angleintAngle in degrees measured clockwise from the parameter to ending point of the arc.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pt1PointFPointF structure that represents the starting point of the curve.
pt2PointFPointF structure that represents the first control point for the curve.
pt3PointFPointF structure that represents the second control point for the curve.
pt4PointFPointF 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pt1PointPointF structure that represents the starting point of the curve.
pt2PointPointF structure that represents the first control point for the curve.
pt3PointPointF structure that represents the second control point for the curve.
pt4PointPointF 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
x1floatThe x-coordinate of the starting point of the curve.
y1floatThe y-coordinate of the starting point of the curve.
x2floatThe x-coordinate of the first control point of the curve.
y2floatThe y-coordinate of the first control point of the curve.
x3floatThe x-coordinate of the second control point of the curve.
y3floatThe y-coordinate of the second control point of the curve.
x4floatThe x-coordinate of the ending point of the curve.
y4floatThe 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPoint[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPointF[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.
tensionfloatValue 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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of PointF structures that define the spline.
tensionfloatValue 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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.
offsetintOffset from the first element in the array of the parameter to the starting point in the curve.
number_of_segmentsintNumber 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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.
offsetintOffset from the first element in the array of the parameter to the starting point in the curve.
number_of_segmentsintNumber of segments after the starting point to include in the curve.
tensionfloatValue 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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of PointF structures that define the spline.
offsetintOffset from the first element in the array of the parameter to the starting point in the curve.
number_of_segmentsintNumber of segments after the starting point to include in the curve.
tensionfloatValue 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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that represent the points that define the curve.
tensionfloatValue 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:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of PointF structures that represent the points that define the curve.
tensionfloatValue 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the ellipse.
rectRectangleFRectangleF 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the ellipse.
rectRectangleRectangleF 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the ellipse.
xfloatThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
yfloatThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthfloatWidth of the bounding rectangle that defines the ellipse.
heightfloatHeight 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the ellipse.
xintThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
yintThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthintWidth of the bounding rectangle that defines the ellipse.
heightintHeight 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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPoint[]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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPointF[]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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPoint[]Array of three PointF structures that define a parallelogram.
src_rectRectangleThe source rectangle.

Method: draw_image(image, dest_points, src_rect)

 draw_image(image, dest_points, src_rect) 

Draws the specified portion of the specified at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPointF[]Array of three PointF structures that define a parallelogram.
src_rectRectangleFThe 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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPoint[]Array of three PointF structures that define a parallelogram.
src_rectRectangleThe source rectangle.
src_unitGraphicsUnitThe 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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPointF[]Array of three PointF structures that define a parallelogram.
src_rectRectangleFThe source rectangle.
src_unitGraphicsUnitThe 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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPoint[]Array of three PointF structures that define a parallelogram.
src_rectRectangleThe source rectangle.
src_unitGraphicsUnitThe units of measure.
image_attributesImageAttributesThe 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 at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe image to draw.
dest_pointsPointF[]Array of three PointF structures that define a parallelogram.
src_rectRectangleFThe source rectangle.
src_unitGraphicsUnitThe units of measure.
image_attributesImageAttributesThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
pointPointFPointF 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
pointPointPointF 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rectRectangleFRectangleF 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rectRectangleRectangleF 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_destinationRectangleThe destination rectangle.
graphics_unitGraphicsUnitThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_destinationRectangleFThe destination rectangle.
graphics_unitGraphicsUnitThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_destinationRectangleThe destination rectangle.
graphics_unitGraphicsUnitThe graphics unit.
image_attributesImageAttributesThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_destinationRectangleFThe destination rectangle.
graphics_unitGraphicsUnitThe graphics unit.
image_attributesImageAttributesThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_sourceRectangleThe rect source.
rect_destinationRectangleThe rect destination.
graphics_unitGraphicsUnitThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_sourceRectangleFThe rect source.
rect_destinationRectangleFThe rect destination.
graphics_unitGraphicsUnitThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_sourceRectangleThe rect source.
rect_destinationRectangleThe rect destination.
graphics_unitGraphicsUnitThe graphics unit.
image_attributesImageAttributesThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rect_sourceRectangleFThe rect source.
rect_destinationRectangleFThe rect destination.
graphics_unitGraphicsUnitThe graphics unit.
image_attributesImageAttributesThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
xfloatThe x-coordinate of the upper-left corner of the drawn image.
yfloatThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
xfloatThe x-coordinate of the upper-left corner of the drawn image.
yfloatThe y-coordinate of the upper-left corner of the drawn image.
widthfloatWidth of the drawn image.
heightfloatHeight 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe y-coordinate of the upper-left corner of the drawn image.
widthintWidth of the drawn image.
heightintHeight 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
pointPointPoint 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rectRectangleRectangle 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe y-coordinate of the upper-left corner of the drawn image.
widthintThe parameter is not used.
heightintThe 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:

ParameterTypeDescription
source_imageImageThe image to draw with.
rectRectangleThe 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line.
point1PointPoint structure that represents the first point to connect.
point2PointPoint 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line.
point1PointFPoint structure that represents the first point to connect.
point2PointFPoint 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line.
x1intThe x-coordinate of the first point.
y1intThe y-coordinate of the first point.
x2intThe x-coordinate of the second point.
y2intThe 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line.
x1floatThe x-coordinate of the first point.
y1floatThe y-coordinate of the first point.
x2floatThe x-coordinate of the second point.
y2floatThe 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line segments.
pointsPoint[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line segments.
pointsPointF[]Array of Point structures that represent the points to connect.

Method: draw_path(pen, path)

 draw_path(pen, path) 

Draws a GraphicsPath.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the path.
pathGraphicsPathGraphicsPath 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the pie shape.
rectRectangleFRectangleF structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes.
start_anglefloatAngle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweep_anglefloatAngle measured in degrees clockwise from the parameter to the second side of the pie shape.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the pie shape.
rectRectangleRectangleF structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes.
start_anglefloatAngle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweep_anglefloatAngle measured in degrees clockwise from the parameter to the second side of the pie shape.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the pie shape.
xfloatThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
yfloatThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
widthfloatWidth of the bounding rectangle that defines the ellipse from which the pie shape comes.
heightfloatHeight of the bounding rectangle that defines the ellipse from which the pie shape comes.
start_anglefloatAngle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweep_anglefloatAngle measured in degrees clockwise from the parameter to the second side of the pie shape.

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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the pie shape.
xintThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
yintThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
widthintWidth of the bounding rectangle that defines the ellipse from which the pie shape comes.
heightintHeight of the bounding rectangle that defines the ellipse from which the pie shape comes.
start_angleintAngle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweep_angleintAngle measured in degrees clockwise from the parameter to the second side of the pie shape.

Method: draw_polygon(pen, points)

 draw_polygon(pen, points) 

Draws a polygon defined by an array of PointF structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the polygon.
pointsPointF[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the polygon.
pointsPoint[]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:

ParameterTypeDescription
penPenA Pen that determines the color, width, and style of the rectangle.
rectRectangleFA 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:

ParameterTypeDescription
penPenA Pen that determines the color, width, and style of the rectangle.
rectRectangleA 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:

ParameterTypeDescription
penPenA Pen that determines the color, width, and style of the rectangle.
xfloatThe x-coordinate of the upper-left corner of the rectangle to draw.
yfloatThe y-coordinate of the upper-left corner of the rectangle to draw.
widthfloatThe width of the rectangle to draw.
heightfloatThe 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:

ParameterTypeDescription
penPenA Pen that determines the color, width, and style of the rectangle.
xintThe x-coordinate of the upper-left corner of the rectangle to draw.
yintThe y-coordinate of the upper-left corner of the rectangle to draw.
widthintThe width of the rectangle to draw.
heightintThe 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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the outlines of the rectangles.
rectsRectangleF[]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:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the outlines of the rectangles.
rectsRectangle[]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:

ParameterTypeDescription
sstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
layout_rectangleRectangleFRectangleF 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:

ParameterTypeDescription
sstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
layout_rectangleRectangleFRectangleF structure that specifies the location of the drawn text.
formatStringFormatStringFormat 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:

ParameterTypeDescription
sstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
pointPointFPointF 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:

ParameterTypeDescription
sstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
pointPointFPointF structure that specifies the upper-left corner of the drawn text.
formatStringFormatStringFormat 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:

ParameterTypeDescription
sstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
xfloatThe x-coordinate of the upper-left corner of the drawn text.
yfloatThe 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:

ParameterTypeDescription
sstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
xfloatThe x-coordinate of the upper-left corner of the drawn text.
yfloatThe y-coordinate of the upper-left corner of the drawn text.
formatStringFormatStringFormat 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that define the spline.
fillmodeFillModeMember 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of PointF structures that define the spline.
fillmodeFillModeMember 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:

ParameterTypeDescription
brushBrushA Brush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that define the spline.
fillmodeFillModeMember of the FillMode enumeration that determines how the curve is filled.
tensionfloatValue 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:

ParameterTypeDescription
brushBrushA Brush that determines the characteristics of the fill.
pointsPoint[]Array of PointF structures that define the spline.
fillmodeFillModeMember of the FillMode enumeration that determines how the curve is filled.
tensionfloatValue 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleFRectangleF 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleRectangleF 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xfloatThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
yfloatThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthfloatWidth of the bounding rectangle that defines the ellipse.
heightfloatHeight 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xintThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
yintThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthintWidth of the bounding rectangle that defines the ellipse.
heightintHeight of the bounding rectangle that defines the ellipse.

Method: fill_path(brush, path)

 fill_path(brush, path) 

Fills the interior of a GraphicsPath.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pathGraphicsPathGraphicsPath 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleRectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes.
start_anglefloatAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweep_anglefloatAngle in degrees measured clockwise from the parameter to the second side of the pie section.

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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleFRectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes.
start_anglefloatAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweep_anglefloatAngle in degrees measured clockwise from the parameter to the second side of the pie section.

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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xfloatThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
yfloatThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
widthfloatWidth of the bounding rectangle that defines the ellipse from which the pie section comes.
heightfloatHeight of the bounding rectangle that defines the ellipse from which the pie section comes.
start_anglefloatAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweep_anglefloatAngle in degrees measured clockwise from the parameter to the second side of the pie section.

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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xintThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
yintThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
widthintWidth of the bounding rectangle that defines the ellipse from which the pie section comes.
heightintHeight of the bounding rectangle that defines the ellipse from which the pie section comes.
start_angleintAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweep_angleintAngle in degrees measured clockwise from the parameter to the second side of the pie section.

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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that represent the vertices of the polygon to fill.
fill_modeFillModeMember 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of PointF structures that represent the vertices of the polygon to fill.
fill_modeFillModeMember 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleRectangle 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleFRectangle 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xfloatThe x-coordinate of the upper-left corner of the rectangle to fill.
yfloatThe y-coordinate of the upper-left corner of the rectangle to fill.
widthfloatWidth of the rectangle to fill.
heightfloatHeight 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xintThe x-coordinate of the upper-left corner of the rectangle to fill.
yintThe y-coordinate of the upper-left corner of the rectangle to fill.
widthintWidth of the rectangle to fill.
heightintHeight 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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectsRectangle[]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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectsRectangleF[]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:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
regionRegionRegion 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:

ParameterTypeDescription
matrixMatrixThe 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:

ParameterTypeDescription
matrixMatrixThe Matrix by which to multiply the geometric transform.
orderMatrixOrderA 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:

ParameterTypeDescription
anglefloatThe 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:

ParameterTypeDescription
anglefloatThe angle of rotation.
orderMatrixOrderA 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:

ParameterTypeDescription
sxfloatThe amount by which to scale the transform in the x-axis direction.
syfloatThe 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:

ParameterTypeDescription
sxfloatThe amount by which to scale the transform in the x-axis direction.
syfloatThe amount by which to scale the transform in the y-axis direction.
orderMatrixOrderA 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:

ParameterTypeDescription
dxfloatThe value of the translation in x.
dyfloatThe 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:

ParameterTypeDescription
dxfloatThe value of the translation in x.
dyfloatThe value of the translation in y.
orderMatrixOrderThe order (prepend or append) in which to apply the translation.