Graphics

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable

public class Graphics implements System.IDisposable

Encapsulates drawing surface.

Methods

MethodDescription
fromHwnd(byte[] hwnd)Creates a new Graphics from the specified handle to a window.
isInBeginUpdateCall()
setInBeginUpdateCall(boolean inBeginUpdateCall)
getCompositingQuality()Gets the rendering quality of composited images drawn to this Graphics.
setCompositingQuality(int value)Sets the rendering quality of composited images drawn to this Graphics.
getCompositingMode()Gets a value that specifies how composited images are drawn to this Graphics.
setCompositingMode(int value)Sets a value that specifies how composited images are drawn to this Graphics.
getClip()Gets a Region that limits the drawing region of this Graphics.
setClip(Region value)Sets a Region that limits the drawing region of this Graphics.
setClip(Graphics g)Sets the clipping region of this Graphics to the Clip property of the specified Graphics
setClip(Rectangle rect)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.
setClip(RectangleF rect)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure.
setClip(GraphicsPath path)Sets the clipping region of this Graphics to the specified GraphicsPath .
getClipBounds()Gets a RectangleF structure that bounds the clipping region of this Graphics.
isClipEmpty()Gets a value indicating whether the clipping region of this Graphics is empty.
getVisibleClipBounds()Gets the bounding rectangle of the visible clipping region of this Graphics.
isVisibleClipEmpty()Gets a value indicating whether the visible clipping region of this Graphics is empty.
getDpiX()Gets the horizontal resolution of this Graphics.
getDpiY()Gets the vertical resolution of this Graphics.
getInterpolationMode()Gets the interpolation mode associated with this Graphics.
setInterpolationMode(int value)Sets the interpolation mode associated with this Graphics.
getPageScale()Gets the scaling between world units and page units for this Graphics.
setPageScale(float value)Sets the scaling between world units and page units for this Graphics.
getPageUnit()Gets the unit of measure used for page coordinates in this Graphics.
setPageUnit(int value)Sets the unit of measure used for page coordinates in this Graphics.
getPixelOffsetMode()Gets a value specifying how pixels are offset during rendering of this Graphics.
setPixelOffsetMode(int value)Sets a value specifying how pixels are offset during rendering of this Graphics.
getRenderingOrigin()Gets the rendering origin of this Graphics for dithering and for hatch brushes.
setRenderingOrigin(Point value)Sets the rendering origin of this Graphics for dithering and for hatch brushes.
getSmoothingMode()Gets the rendering quality for this Graphics.
setSmoothingMode(int value)Sets the rendering quality for this Graphics.
getTextContrast()Gets the gamma correction value for rendering text.
setTextContrast(int value)Sets the gamma correction value for rendering text.
getTextRenderingHint()Gets the rendering mode for text associated with this Graphics.
setTextRenderingHint(int value)Sets the rendering mode for text associated with this Graphics.
getTransform()Gets a copy of the geometric world transformation for this Graphics.
setTransform(Matrix value)Sets a copy of the geometric world transformation for this Graphics.
fromImage(Image image)Creates a new Graphics from the specified Image.
copyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize)Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.
copyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, int copyPixelOperation)Performs a bit-block transfer of the color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.
copyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, int copyPixelOperation)Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.
dispose()Releases all resources used by this Graphics.
clear(Color color)Clears the entire drawing surface and fills it with the specified background color.
drawArc(Pen pen, RectangleF rect, float startAngle, float sweepAngle)Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
drawArc(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
drawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)Draws a Bzier spline defined by four PointF structures.
drawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)Draws a Bzier spline defined by four ordered pairs of coordinates that represent points.
drawBeziers(Pen pen, PointF[] points)Draws a series of Bzier splines from an array of Point structures.
drawBeziers(Pen pen, Point[] points)Draws a series of Bzier splines from an array of PointF structures.
drawClosedCurve(Pen pen, PointF[] points, float tension, int fillmode)Draws a closed cardinal spline defined by an array of PointF structures using a specified tension.
drawClosedCurve(Pen pen, PointF[] points)Draws a closed cardinal spline defined by an array of PointF structures.
drawClosedCurve(Pen pen, Point[] points, float tension, int fillmode)Draws a closed cardinal spline defined by an array of Point structures using a specified tension.
drawClosedCurve(Pen pen, Point[] points)Draws a closed cardinal spline defined by an array of Point structures.
drawCurve(Pen pen, PointF[] points)Draws a cardinal spline through a specified array of PointF structures.
drawCurve(Pen pen, Point[] points)Draws a cardinal spline through a specified array of Point structures.
drawCurve(Pen pen, Point[] points, float tension)Draws a cardinal spline through a specified array of Point structures using a specified tension.
drawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments)Draws a cardinal spline through a specified array of PointF structures using a specified tension.
drawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension)Draws a cardinal spline through a specified array of PointF structures using a specified tension.
drawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension)Draws a cardinal spline through a specified array of Point structures using a specified tension.
drawCurve(Pen pen, PointF[] points, float tension)Draws a cardinal spline through a specified array of PointF structures using a specified tension.
drawEllipse(Pen pen, RectangleF rect)Draws an ellipse defined by a bounding RectangleF.
drawEllipse(Pen pen, float x, float y, float width, float height)Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
drawIcon(Icon icon, int x, int y)Draws the image represented by the specified Icon at the specified coordinates.
drawIcon(Icon icon, Rectangle targetRect)Draws the image represented by the specified Icon within the area specified by a Rectangle structure.
drawIconUnstretched(Icon icon, Rectangle targetRect)Draws the image represented by the specified Icon without scaling the image.
drawImage(Image image, int x, int y)Draws the specified image, using its original physical size, at the location specified by a coordinate pair.
drawImage(Image image, float x, float y)Draws the specified Image, using its original physical size, at the specified location.
drawImage(Image image, Point point)Draws the specified Image, using its original physical size, at the specified location.
drawImage(Image image, Point[] destPoints)Draws the specified \\u0415:Image at the specified location and with the specified shape and size.
drawImage(Image image, PointF point)Draws the specified Image, using its original physical size, at the specified location.
drawImage(Image image, PointF[] destPoints)Draws the specified Image at the specified location and with the specified shape and size.
drawImage(Image image, int x, int y, int width, int height)Draws the specified Image at the specified location and with the specified size.
drawImage(Image image, Rectangle rect)Draws the specified Image at the specified location and with the specified size.
drawImage(Image image, RectangleF rect)Draws the specified Image at the specified location and with the specified size.
drawImage(Image image, float x, float y, float width, float height)Draws the specified Image, using its original physical size, at the specified location and with the specified size.
drawImage(Image image, int x, int y, Rectangle srcRect, int srcUnit)Draws a portion of an image at a specified location.
drawImage(Image image, float x, float y, RectangleF srcRect, int srcUnit)Draws a portion of an image at a specified location.
drawImage(Image image, PointF[] destPoints, RectangleF srcRect, int srcUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Point[] destPoints, Rectangle srcRect, int srcUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Point[] destPoints, Rectangle srcRect, int srcUnit, ImageAttributes imageAttr)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, PointF[] destPoints, RectangleF srcRect, int srcUnit, ImageAttributes imageAttr)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Rectangle destRect, Rectangle srcRect, int srcUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, int srcUnit, ImageAttributes imageAttr)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, RectangleF destRect, RectangleF srcRect, int srcUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, int srcUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, int srcUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, int srcUnit, ImageAttributes imageAttrs)Draws the specified portion of the specified Image at the specified location and with the specified size.
drawImageUnscaled(Image image, int x, int y)Draws the specified image using its original physical size at the location specified by a coordinate pair.
drawImageUnscaled(Image image, Point point)Draws a specified image using its original physical size at a specified location.
drawImageUnscaled(Image image, Rectangle rect)Draws a specified image using its original physical size at a specified location.
drawImageUnscaled(Image image, int x, int y, int width, int height)Draws the specified image using its original physical size at the location specified by a coordinate pair.
drawImageUnscaledAndClipped(Image image, Rectangle rect)Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
drawLine(Pen pen, Point pt1, Point pt2)Draws a line connecting two Point structures.
drawLine(Pen pen, int x1, int y1, int x2, int y2)Draws a line connecting the two points specified by the coordinate pairs.
drawLine(Pen pen, PointF pt1, PointF pt2)Draws a line connecting two PointF structures.
drawLine(Pen pen, float x1, float y1, float x2, float y2)Draws a line connecting the two points specified by the coordinate pairs.
drawLines(Pen pen, PointF[] points)Draws a series of line segments that connect an array of PointF structures.
drawLines(Pen pen, Point[] points)Draws a series of line segments that connect an array of Point structures.
drawPath(Pen pen, GraphicsPath path)Draws a GraphicsPath.
drawPie(Pen pen, RectangleF rect, float startAngle, float sweepAngle)Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
drawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
drawPolygon(Pen pen, Point[] points)Draws a polygon defined by an array of Point structures.
drawPolygon(Pen pen, PointF[] points)Draws a polygon defined by an array of PointF structures.
drawRectangle(Pen pen, int x, int y, int width, int height)Draws a rectangle specified by a coordinate pair, a width, and a height.
drawRectangle(Pen pen, Rectangle rect)Draws a rectangle specified by a Rectangle structure.
drawRectangle(Pen pen, float x, float y, float width, float height)Draws a rectangle specified by a coordinate pair, a width, and a height.
drawRectangles(Pen pen, RectangleF[] rects)Draws a series of rectangles specified by RectangleF structures.
drawRectangles(Pen pen, Rectangle[] rects)Draws a series of rectangles specified by Rectangle structures.
drawString(String s, Font font, Brush brush, RectangleF layoutRectangle)Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
drawString(String s, Font font, Brush brush, PointF point)Draws the specified text string at the specified location with the specified Brush and Font objects.
drawString(String s, Font font, Brush brush, PointF point, StringFormat 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.
drawString(String s, Font font, Brush brush, float x, float y, StringFormat 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.
drawString(String s, Font font, Brush brush, float x, float y)Draws the specified text string at the specified location with the specified Brush and Font objects.
drawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat 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.
fillClosedCurve(Brush brush, PointF[] points, int fillmode, float tension)Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.
fillClosedCurve(Brush brush, PointF[] points)Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.
fillClosedCurve(Brush brush, PointF[] points, int fillmode)Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode.
fillClosedCurve(Brush brush, Point[] points)Fills the interior of a closed cardinal spline curve defined by an array of Point structures.
fillClosedCurve(Brush brush, Point[] points, int fillmode)Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.
fillClosedCurve(Brush brush, Point[] points, int fillmode, float tension)Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.
fillEllipse(Brush brush, RectangleF rect)Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
fillEllipse(Brush brush, float x, float y, float width, float height)Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
fillPath(Brush brush, GraphicsPath path)Fills the interior of a GraphicsPath.
fillPie(Brush brush, Rectangle rect, float startAngle, float sweepAngle)Fills the interior of a pie section defined by an ellipse specified by a Rectangle structure and two radial lines.
fillPie(Brush brush, float x, float y, float width, float height, float startAngle, float sweepAngle)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.
fillPie(Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle)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.
fillPolygon(Brush brush, PointF[] points, int fillMode)Fills the interior of a polygon defined by an array of points specified by PointF structures using the specified fill mode.
fillPolygon(Brush brush, PointF[] points)Fills the interior of a polygon defined by an array of points specified by PointF structures.
fillPolygon(Brush brush, Point[] points)Fills the interior of a polygon defined by an array of points specified by Point structures.
fillPolygon(Brush brush, Point[] points, int fillMode)Fills the interior of a polygon defined by an array of points specified by Point structures using the specified fill mode.
fillRectangle(Brush brush, float x, float y, float width, float height)Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
fillRectangle(Brush brush, RectangleF rect)Fills the interior of a rectangle specified by a RectangleF structure.
fillRectangles(Brush brush, Rectangle[] rects)Fills the interiors of a series of rectangles specified by Rectangle structures.
fillRectangles(Brush brush, RectangleF[] rects)Fills the interiors of a series of rectangles specified by RectangleF structures.
fillRegion(Brush brush, Region region)Fills the interior of a Region.
flush()Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
flush(int intention)Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.
measureString(String text, Font font)Measures the specified string when drawn with the specified Font.
measureString(String text, Font font, SizeF layoutArea)Measures the specified string when drawn with the specified Font.
measureString(String text, Font font, int width)Measures the specified string when drawn with the specified Font.
measureString(String text, Font font, PointF origin, StringFormat stringFormat)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
measureString(String text, Font font, int width, StringFormat format)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
measureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
measureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat, int[] charactersFitted, int[] linesFilled)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
measureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat)Gets an array of Region objects, each of which bounds a range of character positions within the specified string.
resetTransform()Resets the world transformation matrix of this Graphics to the identity matrix.
transformPoints(int destSpace, int srcSpace, PointF[] pts)Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.
transformPoints(int destSpace, int srcSpace, Point[] pts)Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.
translateClip(int dx, int dy)Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
translateClip(float dx, float dy)Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
translateTransform(float dx, float dy)Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.
translateTransform(float dx, float dy, int order)Changes the origin of the coordinate system by applying the specified translation to the transformation matrix of this Graphics in the specified order.
scaleTransform(float sx, float sy)Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object’s transformation matrix.
scaleTransform(float sx, float sy, int order)Applies the specified scaling operation to the transformation matrix of this Graphics in the specified order.
rotateTransform(float angle)Applies the specified rotation to the transformation matrix of this Graphics.
rotateTransform(float angle, int order)Applies the specified rotation to the transformation matrix of this Graphics in the specified order.
multiplyTransform(Matrix matrix)Multiplies the world transformation of this Graphics and specified the Matrix.
multiplyTransform(Matrix matrix, int order)Multiplies the world transformation of this Graphics and specified the Matrix in the specified order.
setClip(Graphics g, int combineMode)Sets the clipping region of this Graphics to the result of the specified combining operation of the current clip region and the Clip property of the specified Graphics.
setClip(Rectangle rect, int combineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.
setClip(RectangleF rect, int combineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure.
setClip(GraphicsPath path, int combineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified GraphicsPath.
setClip(Region region, int combineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified Region.
getHdc()Gets the handle to the device context associated with this Graphics.
getNearestColor(Color color)Gets the nearest color to the specified Color structure.
intersectClip(Region region)Updates the clip region of this Graphics to the intersection of the current clip region and the specified Region.
intersectClip(Rectangle rect)Updates the clip region of this Graphics to the intersection of the current clip region and the specified Rectangle structure.
intersectClip(RectangleF rect)Updates the clip region of this Graphics to the intersection of the current clip region and the specified RectangleF structure.
isVisible(int x, int y)Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
isVisible(Point point)Indicates whether the specified Point structure is contained within the visible clip region of this Graphics.
isVisible(float x, float y)Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
isVisible(PointF point)Indicates whether the specified PointF structure is contained within the visible clip region of this Graphics.
isVisible(int x, int y, int width, int height)Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this Graphics.
isVisible(Rectangle rect)Indicates whether the rectangle specified by a Rectangle structure is contained within the visible clip region of this Graphics.
isVisible(float x, float y, float width, float height)Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this Graphics.
isVisible(RectangleF rect)Indicates whether the rectangle specified by a RectangleF structure is contained within the visible clip region of this Graphics.
releaseHdc(byte[] hdc)Releases a device context handle obtained by a previous call to the M:Graphics.GetHdc method of this Graphics.
releaseHdc()Releases a device context handle obtained by a previous call to the M:Graphics.GetHdc method of this Graphics.
save()Saves the current state of this Graphics and identifies the saved state with a GraphicsState.
restore(GraphicsState gstate)Restores the state of this Graphics to the state represented by a GraphicsState.
resetClip()Resets the clip region of this Graphics to an infinite region.
beginContainer()Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.
beginContainer(Rectangle dstrect, Rectangle srcrect, int unit)Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
beginContainer(RectangleF dstrect, RectangleF srcrect, int unit)Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
endContainer(GraphicsContainer container)Closes the current graphics container and restores the state of this Graphics to the state saved by a call to the .beginContainer method.
excludeClip(Region region)Updates the clip region of this Graphics to exclude the area specified by a Region.
excludeClip(Rectangle rect)Updates the clip region of this Graphics to exclude the area specified by a Rectangle
enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)Sends the records in a selected rectangle from a SMetafile, one at a time, to a callback method for display in a specified parallelogram.
enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
addMetafileComment(byte[] data)Adds a comment to the current Metafile.
getImage()

fromHwnd(byte[] hwnd)

public static Graphics fromHwnd(byte[] hwnd)

Creates a new Graphics from the specified handle to a window.

Parameters:

ParameterTypeDescription
hwndbyte[]Handle to a window.

Returns: Graphics - This method returns a new Graphics for the specified window handle.

isInBeginUpdateCall()

public boolean isInBeginUpdateCall()

Returns: boolean

setInBeginUpdateCall(boolean inBeginUpdateCall)

public void setInBeginUpdateCall(boolean inBeginUpdateCall)

Parameters:

ParameterTypeDescription
inBeginUpdateCallboolean

getCompositingQuality()

public final int getCompositingQuality()

Gets the rendering quality of composited images drawn to this Graphics.

Returns: int - This property specifies a member of the CompositingQuality(.getCompositingQuality/.setCompositingQuality(int)) enumeration.

setCompositingQuality(int value)

public final void setCompositingQuality(int value)

Sets the rendering quality of composited images drawn to this Graphics.

Parameters:

ParameterTypeDescription
valueintthe rendering quality of composited images drawn to this Graphics.

getCompositingMode()

public final int getCompositingMode()

Gets a value that specifies how composited images are drawn to this Graphics.

Value: This property specifies a member of the CompositingMode(.getCompositingMode/.setCompositingMode(int)) enumeration. The default is CompositingMode.SourceOver.

Returns: int - a value that specifies how composited images are drawn to this Graphics.

setCompositingMode(int value)

public final void setCompositingMode(int value)

Sets a value that specifies how composited images are drawn to this Graphics.

Value: This property specifies a member of the CompositingMode(.getCompositingMode/.setCompositingMode(int)) enumeration. The default is CompositingMode.SourceOver.

Parameters:

ParameterTypeDescription
valueinta value that specifies how composited images are drawn to this Graphics.

getClip()

public final Region getClip()

Gets a Region that limits the drawing region of this Graphics.

Returns: Region - A Region that limits the portion of this Graphics that is currently available for com.aspose.drawing.

setClip(Region value)

public final void setClip(Region value)

Sets a Region that limits the drawing region of this Graphics.

Parameters:

ParameterTypeDescription
valueRegiona Region that limits the drawing region of this Graphics.

setClip(Graphics g)

public final void setClip(Graphics g)

Sets the clipping region of this Graphics to the Clip property of the specified Graphics

Parameters:

ParameterTypeDescription
gGraphicsThe Graphics - to source the Clip property .

setClip(Rectangle rect)

public final void setClip(Rectangle rect)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.

Parameters:

ParameterTypeDescription
rectRectangleThe Rectangle structure to combine.

setClip(RectangleF rect)

public final void setClip(RectangleF rect)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure.

Parameters:

ParameterTypeDescription
rectRectangleFThe RectangleF structure to combine.

setClip(GraphicsPath path)

public final void setClip(GraphicsPath path)

Sets the clipping region of this Graphics to the specified GraphicsPath .

Parameters:

ParameterTypeDescription
pathGraphicsPathThe GraphicsPath that represents the new clip region.

getClipBounds()

public final RectangleF getClipBounds()

Gets a RectangleF structure that bounds the clipping region of this Graphics.

Value: The RectangleF structure that bounds the clipping region of this Graphics.

Returns: RectangleF - a RectangleF structure that bounds the clipping region of this Graphics.

isClipEmpty()

public final boolean isClipEmpty()

Gets a value indicating whether the clipping region of this Graphics is empty.

Value: true if the clipping region of this Graphics is empty; otherwise, false.

Returns: boolean - a value indicating whether the clipping region of this Graphics is empty.

getVisibleClipBounds()

public final RectangleF getVisibleClipBounds()

Gets the bounding rectangle of the visible clipping region of this Graphics.

Value: A RectangleF structure that represents a bounding rectangle for the visible clipping region of this Graphics.

Returns: RectangleF - the bounding rectangle of the visible clipping region of this Graphics.

isVisibleClipEmpty()

public final boolean isVisibleClipEmpty()

Gets a value indicating whether the visible clipping region of this Graphics is empty.

Value: true if the visible portion of the clipping region of this Graphics is empty; otherwise, false.

Returns: boolean - a value indicating whether the visible clipping region of this Graphics is empty.

getDpiX()

public final float getDpiX()

Gets the horizontal resolution of this Graphics.

Returns: float - The value, in dots per inch, for the horizontal resolution supported by this Graphics.

getDpiY()

public final float getDpiY()

Gets the vertical resolution of this Graphics.

Returns: float - The value, in dots per inch, for the vertical resolution supported by this Graphics.

getInterpolationMode()

public final int getInterpolationMode()

Gets the interpolation mode associated with this Graphics.

Returns: int - the interpolation mode associated with this Graphics.

setInterpolationMode(int value)

public final void setInterpolationMode(int value)

Sets the interpolation mode associated with this Graphics.

Parameters:

ParameterTypeDescription
valueintthe interpolation mode associated with this Graphics.

getPageScale()

public final float getPageScale()

Gets the scaling between world units and page units for this Graphics.

Returns: float - This property specifies a value for the scaling between world units and page units for this Graphics.

setPageScale(float value)

public final void setPageScale(float value)

Sets the scaling between world units and page units for this Graphics.

Parameters:

ParameterTypeDescription
valuefloatthe scaling between world units and page units for this Graphics.

getPageUnit()

public final int getPageUnit()

Gets the unit of measure used for page coordinates in this Graphics.

Returns: int - One of the GraphicsUnit values other than GraphicsUnit.World.

setPageUnit(int value)

public final void setPageUnit(int value)

Sets the unit of measure used for page coordinates in this Graphics.

Parameters:

ParameterTypeDescription
valueintthe unit of measure used for page coordinates in this Graphics.

getPixelOffsetMode()

public final int getPixelOffsetMode()

Gets a value specifying how pixels are offset during rendering of this Graphics.

Returns: int - This property specifies a member of the PixelOffsetMode(.getPixelOffsetMode/.setPixelOffsetMode(int)) enumeration.

setPixelOffsetMode(int value)

public final void setPixelOffsetMode(int value)

Sets a value specifying how pixels are offset during rendering of this Graphics.

Parameters:

ParameterTypeDescription
valueinta value specifying how pixels are offset during rendering of this Graphics.

getRenderingOrigin()

public final Point getRenderingOrigin()

Gets the rendering origin of this Graphics for dithering and for hatch brushes.

Value: A Point structure that represents the dither origin for 8-bits-per-pixel and 16-bits-per-pixel dithering and is also used to set the origin for hatch brushes.

Returns: Point - the rendering origin of this Graphics for dithering and for hatch brushes.

setRenderingOrigin(Point value)

public final void setRenderingOrigin(Point value)

Sets the rendering origin of this Graphics for dithering and for hatch brushes.

Value: A Point structure that represents the dither origin for 8-bits-per-pixel and 16-bits-per-pixel dithering and is also used to set the origin for hatch brushes.

Parameters:

ParameterTypeDescription
valuePointthe rendering origin of this Graphics for dithering and for hatch brushes.

getSmoothingMode()

public final int getSmoothingMode()

Gets the rendering quality for this Graphics.

Returns: int - the rendering quality for this Graphics.

setSmoothingMode(int value)

public final void setSmoothingMode(int value)

Sets the rendering quality for this Graphics.

Parameters:

ParameterTypeDescription
valueintthe rendering quality for this Graphics.

getTextContrast()

public final int getTextContrast()

Gets the gamma correction value for rendering text.

Value: The gamma correction value used for rendering antialiased and ClearType text.

Returns: int - the gamma correction value for rendering text.

setTextContrast(int value)

public final void setTextContrast(int value)

Sets the gamma correction value for rendering text.

Value: The gamma correction value used for rendering antialiased and ClearType text.

Parameters:

ParameterTypeDescription
valueintthe gamma correction value for rendering text.

getTextRenderingHint()

public final int getTextRenderingHint()

Gets the rendering mode for text associated with this Graphics.

Returns: int - the rendering mode for text associated with this Graphics.

setTextRenderingHint(int value)

public final void setTextRenderingHint(int value)

Sets the rendering mode for text associated with this Graphics.

Parameters:

ParameterTypeDescription
valueintthe rendering mode for text associated with this Graphics.

getTransform()

public final Matrix getTransform()

Gets a copy of the geometric world transformation for this Graphics.

Returns: Matrix - A copy of the Matrix that represents the geometric world transformation for this Graphics.

setTransform(Matrix value)

public final void setTransform(Matrix value)

Sets a copy of the geometric world transformation for this Graphics.

Parameters:

ParameterTypeDescription
valueMatrixa copy of the geometric world transformation for this Graphics.

fromImage(Image image)

public static Graphics fromImage(Image image)

Creates a new Graphics from the specified Image.

Parameters:

ParameterTypeDescription
imageImageImage from which to create the new Graphics.

Returns: Graphics - A new Graphics for the specified Image.

copyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize)

public final void copyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize)

Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.

Parameters:

ParameterTypeDescription
upperLeftSourcePointThe point at the upper-left corner of the source rectangle.
upperLeftDestinationPointThe point at the upper-left corner of the destination rectangle.
blockRegionSizeSizeThe size of the area to be transferred.

copyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, int copyPixelOperation)

public final void copyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, int copyPixelOperation)

Performs a bit-block transfer of the color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.

Parameters:

ParameterTypeDescription
sourceXintThe x-coordinate of the point at the upper-left corner of the source rectangle.
sourceYintThe y-coordinate of the point at the upper-left corner of the source rectangle.
destinationXintThe x-coordinate of the point at the upper-left corner of the destination rectangle.
destinationYintThe y-coordinate of the point at the upper-left corner of the destination rectangle.
blockRegionSizeSizeThe size of the area to be transferred.
copyPixelOperationintOne of the CopyPixelOperation values.

copyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, int copyPixelOperation)

public final void copyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, int copyPixelOperation)

Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.

Parameters:

ParameterTypeDescription
upperLeftSourcePointThe point at the upper-left corner of the source rectangle.
upperLeftDestinationPointThe point at the upper-left corner of the destination rectangle.
blockRegionSizeSizeThe size of the area to be transferred..
copyPixelOperationintne of the CopyPixelOperation values.

dispose()

public final void dispose()

Releases all resources used by this Graphics.

clear(Color color)

public final void clear(Color color)

Clears the entire drawing surface and fills it with the specified background color.

Parameters:

ParameterTypeDescription
colorColorColor structure that represents the background color of the drawing surface.

drawArc(Pen pen, RectangleF rect, float startAngle, float sweepAngle)

public final void drawArc(Pen pen, RectangleF rect, float startAngle, float sweepAngle)

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.
startAnglefloatAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweepAnglefloatAngle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

drawArc(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)

public final void drawArc(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)

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.
startAnglefloatAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweepAnglefloatAngle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

drawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)

public final void drawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)

Draws a Bzier 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.

drawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)

public final void drawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)

Draws a Bzier 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.

drawBeziers(Pen pen, PointF[] points)

public final void drawBeziers(Pen pen, PointF[] points)

Draws a series of Bzier 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. The number of points in the array should be a multiple of 3 plus 1, such as 4, 7, or 10.

drawBeziers(Pen pen, Point[] points)

public final void drawBeziers(Pen pen, Point[] points)

Draws a series of Bzier splines from an array of PointF structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPoint[]Array of PointF structures that represent the points that determine the curve. The number of points in the array should be a multiple of 3 plus 1, such as 4, 7, or 10.

drawClosedCurve(Pen pen, PointF[] points, float tension, int fillmode)

public final void drawClosedCurve(Pen pen, PointF[] points, float tension, int fillmode)

Draws a closed cardinal spline defined by an 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 define the spline.
tensionfloatValue greater than or equal to 0.0F that specifies the tension of the curve.
fillmodeintMember of the FillMode enumeration that determines how the curve is filled. This parameter is required but is ignored.

drawClosedCurve(Pen pen, PointF[] points)

public final void drawClosedCurve(Pen pen, PointF[] points)

Draws a closed cardinal spline defined by an array of PointF structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.

drawClosedCurve(Pen pen, Point[] points, float tension, int fillmode)

public final void drawClosedCurve(Pen pen, Point[] points, float tension, int fillmode)

Draws a closed cardinal spline defined by an array of Point structures using a specified tension.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of Point structures that define the spline.
tensionfloatValue greater than or equal to 0.0F that specifies the tension of the curve.
fillmodeintMember of the FillMode enumeration that determines how the curve is filled. This parameter is required but is ignored.

drawClosedCurve(Pen pen, Point[] points)

public final void drawClosedCurve(Pen pen, Point[] points)

Draws a closed cardinal spline defined by an array of Point structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of Point structures that define the spline.

drawCurve(Pen pen, PointF[] points)

public final void drawCurve(Pen pen, PointF[] points)

Draws a cardinal spline through a specified array of PointF structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPointF[]Array of PointF structures that define the spline.

drawCurve(Pen pen, Point[] points)

public final void drawCurve(Pen pen, Point[] points)

Draws a cardinal spline through a specified array of Point structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPoint[]Array of Point structures that define the spline.

drawCurve(Pen pen, Point[] points, float tension)

public final void drawCurve(Pen pen, Point[] points, float tension)

Draws a cardinal spline through a specified array of Point structures using a specified tension.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPoint[]Array of Point structures that define the spline.
tensionfloatValue greater than or equal to 0.0F that specifies the tension of the curve.

drawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments)

public final void drawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments)

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 style of the curve.
pointsPointF[]Array of PointF structures that define the spline.
offsetintOffset from the first element in the array of the points parameter to the starting point in the curve.
numberOfSegmentsintNumber of segments after the starting point to include in the curve.

drawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension)

public final void drawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float 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 style of the curve.
pointsPointF[]Array of PointF structures that define the spline.
offsetintOffset from the first element in the array of the points parameter to the starting point in the curve.
numberOfSegmentsintNumber 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.

drawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension)

public final void drawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension)

Draws a cardinal spline through a specified array of Point structures using a specified tension. The drawing begins offset from the beginning of the array.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pointsPoint[]Array of Point structures that define the spline.
offsetintOffset from the first element in the array of the points parameter to the starting point in the curve.
numberOfSegmentsintNumber 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.

drawCurve(Pen pen, PointF[] points, float tension)

public final void drawCurve(Pen pen, PointF[] points, float 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 style 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.

drawEllipse(Pen pen, RectangleF rect)

public final void drawEllipse(Pen pen, RectangleF 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.

drawEllipse(Pen pen, float x, float y, float width, float height)

public final void drawEllipse(Pen pen, float x, float y, float width, float 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.

drawIcon(Icon icon, int x, int y)

public final void drawIcon(Icon icon, int x, int y)

Draws the image represented by the specified Icon at the specified coordinates.

Parameters:

ParameterTypeDescription
iconIconIcon to draw.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe y-coordinate of the upper-left corner of the drawn image.

drawIcon(Icon icon, Rectangle targetRect)

public final void drawIcon(Icon icon, Rectangle targetRect)

Draws the image represented by the specified Icon within the area specified by a Rectangle structure.

Parameters:

ParameterTypeDescription
iconIconIcon to draw.
targetRectRectangleRectangle structure that specifies the location and size of the resulting image on the display surface. The image contained in the icon parameter is scaled to the dimensions of this rectangular area.

drawIconUnstretched(Icon icon, Rectangle targetRect)

public final void drawIconUnstretched(Icon icon, Rectangle targetRect)

Draws the image represented by the specified Icon without scaling the image.

Parameters:

ParameterTypeDescription
iconIconIcon to draw.
targetRectRectangleRectangle structure that specifies the location and size of the resulting image. The image is not scaled to fit this rectangle, but retains its original size. If the image is larger than the rectangle, it is clipped to fit inside it.

drawImage(Image image, int x, int y)

public final void drawImage(Image image, int x, int y)

Draws the specified image, using its original physical size, at the location specified by a coordinate pair.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe y-coordinate of the upper-left corner of the drawn image.

drawImage(Image image, float x, float y)

public final void drawImage(Image image, float x, float y)

Draws the specified Image, using its original physical size, at the specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
xfloatThe x-coordinate of the upper-left corner of the drawn image.
yfloatThe y-coordinate of the upper-left corner of the drawn image.

drawImage(Image image, Point point)

public final void drawImage(Image image, Point point)

Draws the specified Image, using its original physical size, at the specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
pointPointPoint structure that represents the location of the upper-left corner of the drawn image.

drawImage(Image image, Point[] destPoints)

public final void drawImage(Image image, Point[] destPoints)

Draws the specified \\u0415:Image at the specified location and with the specified shape and size.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destPointsPoint[]Array of three Point structures that define a parallelogram.

drawImage(Image image, PointF point)

public final void drawImage(Image image, PointF point)

Draws the specified Image, using its original physical size, at the specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
pointPointFPointF structure that represents the upper-left corner of the drawn image.

drawImage(Image image, PointF[] destPoints)

public final void drawImage(Image image, PointF[] destPoints)

Draws the specified Image at the specified location and with the specified shape and size.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.

drawImage(Image image, int x, int y, int width, int height)

public final void drawImage(Image image, int x, int y, int width, int height)

Draws the specified Image at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
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.

drawImage(Image image, Rectangle rect)

public final void drawImage(Image image, Rectangle rect)

Draws the specified Image at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe Image to draw.
rectRectangleThe rectangle that specifies the location and size of the drawn image.

drawImage(Image image, RectangleF rect)

public final void drawImage(Image image, RectangleF rect)

Draws the specified Image at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageThe Image to draw.
rectRectangleFThe rectangle that specifies the location and size of the drawn image.

drawImage(Image image, float x, float y, float width, float height)

public final void drawImage(Image image, float x, float y, float width, float height)

Draws the specified Image, using its original physical size, at the specified location and with the specified size.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
xfloatThe x-coordinate of the upper-left corner of the drawn image.
yfloatThe y-coordinate of the upper-left corner of the drawn image.
widthfloatThe width of the drawn image.
heightfloatThe height of the drawn image.

drawImage(Image image, int x, int y, Rectangle srcRect, int srcUnit)

public final void drawImage(Image image, int x, int y, Rectangle srcRect, int srcUnit)

Draws a portion of an image at a specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe y-coordinate of the upper-left corner of the drawn image.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

drawImage(Image image, float x, float y, RectangleF srcRect, int srcUnit)

public final void drawImage(Image image, float x, float y, RectangleF srcRect, int srcUnit)

Draws a portion of an image at a specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
xfloatThe x-coordinate of the upper-left corner of the drawn image.
yfloatThe y-coordinate of the upper-left corner of the drawn image.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

drawImage(Image image, PointF[] destPoints, RectangleF srcRect, int srcUnit)

public final void drawImage(Image image, PointF[] destPoints, RectangleF srcRect, int srcUnit)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

drawImage(Image image, Point[] destPoints, Rectangle srcRect, int srcUnit)

public final void drawImage(Image image, Point[] destPoints, Rectangle srcRect, int srcUnit)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destPointsPoint[]Array of three Point structures that define a parallelogram.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

drawImage(Image image, Point[] destPoints, Rectangle srcRect, int srcUnit, ImageAttributes imageAttr)

public final void drawImage(Image image, Point[] destPoints, Rectangle srcRect, int srcUnit, ImageAttributes imageAttr)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destPointsPoint[]Array of three Point structures that define a parallelogram.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.
imageAttrImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

drawImage(Image image, PointF[] destPoints, RectangleF srcRect, int srcUnit, ImageAttributes imageAttr)

public final void drawImage(Image image, PointF[] destPoints, RectangleF srcRect, int srcUnit, ImageAttributes imageAttr)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.
imageAttrImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

drawImage(Image image, Rectangle destRect, Rectangle srcRect, int srcUnit)

public final void drawImage(Image image, Rectangle destRect, Rectangle srcRect, int srcUnit)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

drawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, int srcUnit, ImageAttributes imageAttr)

public final void drawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, int srcUnit, ImageAttributes imageAttr)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXintThe x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYintThe y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthintWidth of the portion of the source image to draw.
srcHeightintHeight of the portion of the source image to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.
imageAttrImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

drawImage(Image image, RectangleF destRect, RectangleF srcRect, int srcUnit)

public final void drawImage(Image image, RectangleF destRect, RectangleF srcRect, int srcUnit)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

drawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, int srcUnit)

public final void drawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, int srcUnit)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXintThe x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYintThe y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthintWidth of the portion of the source image to draw.
srcHeightintHeight of the portion of the source image to draw
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.

drawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, int srcUnit)

public final void drawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, int srcUnit)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXfloatThe x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYfloatThe y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthfloatWidth of the portion of the source image to draw.
srcHeightfloatHeight of the portion of the source image to draw
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.

drawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, int srcUnit, ImageAttributes imageAttrs)

public final void drawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, int srcUnit, ImageAttributes imageAttrs)

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

Parameters:

ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXfloatThe x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYfloatThe y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthfloatWidth of the portion of the source image to draw.
srcHeightfloatHeight of the portion of the source image to draw
srcUnitintMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.
imageAttrsImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

drawImageUnscaled(Image image, int x, int y)

public final void drawImageUnscaled(Image image, int x, int y)

Draws the specified image using its original physical size at the location specified by a coordinate pair.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
xintThe x-coordinate of the upper-left corner of the drawn image.
yintThe y-coordinate of the upper-left corner of the drawn image.

drawImageUnscaled(Image image, Point point)

public final void drawImageUnscaled(Image image, Point point)

Draws a specified image using its original physical size at a specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
pointPointPoint structure that specifies the upper-left corner of the drawn image.

drawImageUnscaled(Image image, Rectangle rect)

public final void drawImageUnscaled(Image image, Rectangle rect)

Draws a specified image using its original physical size at a specified location.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
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.

drawImageUnscaled(Image image, int x, int y, int width, int height)

public final void drawImageUnscaled(Image image, int x, int y, int width, int height)

Draws the specified image using its original physical size at the location specified by a coordinate pair.

Parameters:

ParameterTypeDescription
imageImageImage to draw.
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 width of the drawn image.
heightintThe height of the drawn image.

drawImageUnscaledAndClipped(Image image, Rectangle rect)

public final void drawImageUnscaledAndClipped(Image image, Rectangle rect)

Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.

Parameters:

ParameterTypeDescription
imageImageThe Image to draw.
rectRectangleThe Rectangle in which to draw the image.

drawLine(Pen pen, Point pt1, Point pt2)

public final void drawLine(Pen pen, Point pt1, Point pt2)

Draws a line connecting two Point structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line.
pt1PointPoint structure that represents the first point to connect.
pt2PointPoint structure that represents the second point to connect.

drawLine(Pen pen, int x1, int y1, int x2, int y2)

public final void drawLine(Pen pen, int x1, int y1, int x2, int 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.

drawLine(Pen pen, PointF pt1, PointF pt2)

public final void drawLine(Pen pen, PointF pt1, PointF pt2)

Draws a line connecting two PointF structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the line.
pt1PointFPointF structure that represents the first point to connect.
pt2PointFPointF structure that represents the second point to connect.

drawLine(Pen pen, float x1, float y1, float x2, float y2)

public final void drawLine(Pen pen, float x1, float y1, float x2, float 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.

drawLines(Pen pen, PointF[] points)

public final void drawLines(Pen pen, PointF[] points)

Draws a series of line segments that connect an array of PointF structures.

Parameters:

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

drawLines(Pen pen, Point[] points)

public final void drawLines(Pen pen, Point[] 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.

drawPath(Pen pen, GraphicsPath path)

public final void drawPath(Pen pen, GraphicsPath path)

Draws a GraphicsPath.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the path.
pathGraphicsPathGraphicsPath to draw.

drawPie(Pen pen, RectangleF rect, float startAngle, float sweepAngle)

public final void drawPie(Pen pen, RectangleF rect, float startAngle, float sweepAngle)

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.
startAnglefloatAngle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweepAnglefloatAngle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

drawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)

public final void drawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)

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.
startAnglefloatAngle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweepAnglefloatAngle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

drawPolygon(Pen pen, Point[] points)

public final void drawPolygon(Pen pen, Point[] points)

Draws a polygon defined by an array of Point structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the polygon.
pointsPoint[]Array of Point structures that represent the vertices of the polygon.

drawPolygon(Pen pen, PointF[] points)

public final void drawPolygon(Pen pen, PointF[] 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.

drawRectangle(Pen pen, int x, int y, int width, int height)

public final void drawRectangle(Pen pen, int x, int y, int width, int height)

Draws a rectangle specified by a coordinate pair, a width, and a height.

Parameters:

ParameterTypeDescription
penPenPen 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.
widthintWidth of the rectangle to draw.
heightintHeight of the rectangle to draw.

drawRectangle(Pen pen, Rectangle rect)

public final void drawRectangle(Pen pen, Rectangle rect)

Draws a rectangle specified by a Rectangle structure.

Parameters:

ParameterTypeDescription
penPenA Pen that determines the color, width, and style of the rectangle.
rectRectangleA Rectangle structure that represents the rectangle to draw.

drawRectangle(Pen pen, float x, float y, float width, float height)

public final void drawRectangle(Pen pen, float x, float y, float width, float 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.

drawRectangles(Pen pen, RectangleF[] rects)

public final void drawRectangles(Pen pen, RectangleF[] 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.

drawRectangles(Pen pen, Rectangle[] rects)

public final void drawRectangles(Pen pen, Rectangle[] rects)

Draws a series of rectangles specified by Rectangle structures.

Parameters:

ParameterTypeDescription
penPenPen that determines the color, width, and style of the outlines of the rectangles.
rectsRectangle[]Array of Rectangle structures that represent the rectangles to draw.

drawString(String s, Font font, Brush brush, RectangleF layoutRectangle)

public final void drawString(String s, Font font, Brush brush, RectangleF layoutRectangle)

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
sjava.lang.StringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
layoutRectangleRectangleFRectangleF structure that specifies the location of the drawn text that are applied to the drawn text.

drawString(String s, Font font, Brush brush, PointF point)

public final void drawString(String s, Font font, Brush brush, PointF point)

Draws the specified text string at the specified location with the specified Brush and Font objects.

Parameters:

ParameterTypeDescription
sjava.lang.StringString 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.

drawString(String s, Font font, Brush brush, PointF point, StringFormat format)

public final void drawString(String s, Font font, Brush brush, PointF point, StringFormat 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
sjava.lang.StringString 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.

drawString(String s, Font font, Brush brush, float x, float y, StringFormat format)

public final void drawString(String s, Font font, Brush brush, float x, float y, StringFormat 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
sjava.lang.StringString 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.

drawString(String s, Font font, Brush brush, float x, float y)

public final void drawString(String s, Font font, Brush brush, float x, float y)

Draws the specified text string at the specified location with the specified Brush and Font objects.

Parameters:

ParameterTypeDescription
sjava.lang.StringString 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.

drawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)

public final void drawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat 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
sjava.lang.StringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
layoutRectangleRectangleFRectangleF 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.

fillClosedCurve(Brush brush, PointF[] points, int fillmode, float tension)

public final void fillClosedCurve(Brush brush, PointF[] points, int fillmode, float 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.
fillmodeintMember 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.

fillClosedCurve(Brush brush, PointF[] points)

public final void fillClosedCurve(Brush brush, PointF[] points)

Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that define the spline.

fillClosedCurve(Brush brush, PointF[] points, int fillmode)

public final void fillClosedCurve(Brush brush, PointF[] points, int fillmode)

Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that define the spline.
fillmodeintMember of the FillMode enumeration that determines how the curve is filled.

fillClosedCurve(Brush brush, Point[] points)

public final void fillClosedCurve(Brush brush, Point[] points)

Fills the interior of a closed cardinal spline curve defined by an array of Point structures.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of Point structures that define the spline.

fillClosedCurve(Brush brush, Point[] points, int fillmode)

public final void fillClosedCurve(Brush brush, Point[] points, int fillmode)

Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of Point structures that define the spline.
fillmodeintMember of the FillMode enumeration that determines how the curve is filled.

fillClosedCurve(Brush brush, Point[] points, int fillmode, float tension)

public final void fillClosedCurve(Brush brush, Point[] points, int fillmode, float tension)

Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.

Parameters:

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

fillEllipse(Brush brush, RectangleF rect)

public final void fillEllipse(Brush brush, RectangleF 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.

fillEllipse(Brush brush, float x, float y, float width, float height)

public final void fillEllipse(Brush brush, float x, float y, float width, float 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.

fillPath(Brush brush, GraphicsPath path)

public final void fillPath(Brush brush, GraphicsPath path)

Fills the interior of a GraphicsPath.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pathGraphicsPathGraphicsPath that represents the path to fill.

fillPie(Brush brush, Rectangle rect, float startAngle, float sweepAngle)

public final void fillPie(Brush brush, Rectangle rect, float startAngle, float sweepAngle)

Fills the interior of a pie section defined by an ellipse specified by a Rectangle 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.
startAnglefloatAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweepAnglefloatAngle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.

fillPie(Brush brush, float x, float y, float width, float height, float startAngle, float sweepAngle)

public final void fillPie(Brush brush, float x, float y, float width, float height, float startAngle, float sweepAngle)

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.
startAnglefloatAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweepAnglefloatAngle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.

fillPie(Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle)

public final void fillPie(Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle)

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.
startAngleintAngle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweepAngleintAngle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.

fillPolygon(Brush brush, PointF[] points, int fillMode)

public final void fillPolygon(Brush brush, PointF[] points, int fillMode)

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.
fillModeintMember of the FillMode enumeration that determines the style of the fill.

fillPolygon(Brush brush, PointF[] points)

public final void fillPolygon(Brush brush, PointF[] points)

Fills the interior of a polygon defined by an array of points specified by PointF structures.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that represent the vertices of the polygon to fill.

fillPolygon(Brush brush, Point[] points)

public final void fillPolygon(Brush brush, Point[] points)

Fills the interior of a polygon defined by an array of points specified by Point structures.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of Point structures that represent the vertices of the polygon to fill.

fillPolygon(Brush brush, Point[] points, int fillMode)

public final void fillPolygon(Brush brush, Point[] points, int fillMode)

Fills the interior of a polygon defined by an array of points specified by Point structures using the specified fill mode.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of Point structures that represent the vertices of the polygon to fill.
fillModeintMember of the FillMode enumeration that determines the style of the fill.

fillRectangle(Brush brush, float x, float y, float width, float height)

public final void fillRectangle(Brush brush, float x, float y, float width, float height)

Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.

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.

fillRectangle(Brush brush, RectangleF rect)

public final void fillRectangle(Brush brush, RectangleF rect)

Fills the interior of a rectangle specified by a RectangleF structure.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleFRectangleF structure that represents the rectangle to fill.

fillRectangles(Brush brush, Rectangle[] rects)

public final void fillRectangles(Brush brush, Rectangle[] 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.

fillRectangles(Brush brush, RectangleF[] rects)

public final void fillRectangles(Brush brush, RectangleF[] rects)

Fills the interiors of a series of rectangles specified by RectangleF structures.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectsRectangleF[]Array of RectangleF structures that represent the rectangles to fill.

fillRegion(Brush brush, Region region)

public final void fillRegion(Brush brush, Region region)

Fills the interior of a Region.

Parameters:

ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
regionRegionRegion that represents the area to fill.

flush()

public final void flush()

Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.

flush(int intention)

public final void flush(int intention)

Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.

Parameters:

ParameterTypeDescription
intentionintMember of the FlushIntention enumeration that specifies whether the method returns immediately or waits for any existing operations to finish.

measureString(String text, Font font)

public final SizeF measureString(String text, Font font)

Measures the specified string when drawn with the specified Font.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont that defines the text format of the string.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified by the text parameter as drawn with the font parameter.

measureString(String text, Font font, SizeF layoutArea)

public final SizeF measureString(String text, Font font, SizeF layoutArea)

Measures the specified string when drawn with the specified Font.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont that defines the text format of the string.
layoutAreaSizeFSizeF structure that specifies the maximum layout area for the text.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified by the text parameter as drawn with the font parameter.

measureString(String text, Font font, int width)

public final SizeF measureString(String text, Font font, int width)

Measures the specified string when drawn with the specified Font.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont that defines the text format of the string.
widthintMaximum width of the string in pixels.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified by the text parameter as drawn with the font parameter.

measureString(String text, Font font, PointF origin, StringFormat stringFormat)

public final SizeF measureString(String text, Font font, PointF origin, StringFormat stringFormat)

Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont defines the text format of the string.
originPointFPointF structure that represents the upper-left corner of the string.
stringFormatStringFormatStringFormat that represents formatting information, such as line spacing, for the string.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified by the text parameter as drawn with the font parameter and the stringFormat parameter.

measureString(String text, Font font, int width, StringFormat format)

public final SizeF measureString(String text, Font font, int width, StringFormat format)

Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont that defines the text format of the string.
widthintMaximum width of the string.
formatStringFormatStringFormat that represents formatting information, such as line spacing, for the string.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified in the text parameter as drawn with the font parameter and the format parameter.

measureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)

public final SizeF measureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)

Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont defines the text format of the string.
layoutAreaSizeFSizeF structure that specifies the maximum layout area for the text.
stringFormatStringFormatStringFormat that represents formatting information, such as line spacing, for the string.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified in the text parameter as drawn with the font parameter and the stringFormat parameter.

measureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat, int[] charactersFitted, int[] linesFilled)

public final SizeF measureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat, int[] charactersFitted, int[] linesFilled)

Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont defines the text format of the string.
layoutAreaSizeFSizeF structure that specifies the maximum layout area for the text.
stringFormatStringFormatStringFormat that represents formatting information, such as line spacing, for the string.
charactersFittedint[]Number of characters in the string.
linesFilledint[]Number of text lines in the string.

Returns: SizeF - This method returns a SizeF structure that represents the size, in the units specified by the Graphics.PageUnit property, of the string specified in the text parameter as drawn with the font parameter and the stringFormat parameter.

measureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat)

public final Region[] measureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat)

Gets an array of Region objects, each of which bounds a range of character positions within the specified string.

Parameters:

ParameterTypeDescription
textjava.lang.StringString to measure.
fontFontFont that defines the text format of the string.
layoutRectRectangleFRectangleF structure that specifies the layout rectangle for the string.
stringFormatStringFormatStringFormat that represents formatting information, such as line spacing, for the string.

Returns: com.aspose.drawing.Region[] - This method returns an array of Region objects, each of which bounds a range of character positions within the specified string.

resetTransform()

public final void resetTransform()

Resets the world transformation matrix of this Graphics to the identity matrix.

transformPoints(int destSpace, int srcSpace, PointF[] pts)

public final void transformPoints(int destSpace, int srcSpace, PointF[] pts)

Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.

Parameters:

ParameterTypeDescription
destSpaceintMember of the CoordinateSpace enumeration that specifies the destination coordinate space.
srcSpaceintMember of the CoordinateSpace enumeration that specifies the source coordinate space.
ptsPointF[]Array of PointF structures that represent the points to transform.

transformPoints(int destSpace, int srcSpace, Point[] pts)

public final void transformPoints(int destSpace, int srcSpace, Point[] pts)

Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.

Parameters:

ParameterTypeDescription
destSpaceintMember of the CoordinateSpace enumeration that specifies the destination coordinate space.
srcSpaceintMember of the CoordinateSpace enumeration that specifies the source coordinate space.
ptsPoint[]Array of Point structures that represent the points to transform.

translateClip(int dx, int dy)

public final void translateClip(int dx, int dy)

Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.

Parameters:

ParameterTypeDescription
dxintThe x-coordinate of the translation.
dyintThe y-coordinate of the translation.

translateClip(float dx, float dy)

public final void translateClip(float dx, float dy)

Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.

Parameters:

ParameterTypeDescription
dxfloatThe x-coordinate of the translation.
dyfloatThe y-coordinate of the translation.

translateTransform(float dx, float dy)

public final void translateTransform(float dx, float dy)

Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.

Parameters:

ParameterTypeDescription
dxfloatThe x-coordinate of the translation.
dyfloatThe y-coordinate of the translation.

translateTransform(float dx, float dy, int order)

public final void translateTransform(float dx, float dy, int order)

Changes the origin of the coordinate system by applying the specified translation to the transformation matrix of this Graphics in the specified order.

Parameters:

ParameterTypeDescription
dxfloatThe x-coordinate of the translation.
dyfloatThe y-coordinate of the translation.
orderintMember of the MatrixOrder enumeration that specifies whether the translation is prepended or appended to the transformation matrix.

scaleTransform(float sx, float sy)

public final void scaleTransform(float sx, float sy)

Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object’s transformation matrix.

Parameters:

ParameterTypeDescription
sxfloatScale factor in the x direction.
syfloatScale factor in the y direction.

scaleTransform(float sx, float sy, int order)

public final void scaleTransform(float sx, float sy, int order)

Applies the specified scaling operation to the transformation matrix of this Graphics in the specified order.

Parameters:

ParameterTypeDescription
sxfloatScale factor in the x direction.
syfloatScale factor in the y direction.
orderintMember of the MatrixOrder enumeration that specifies whether the scaling operation is prepended or appended to the transformation matrix.

rotateTransform(float angle)

public final void rotateTransform(float angle)

Applies the specified rotation to the transformation matrix of this Graphics.

Parameters:

ParameterTypeDescription
anglefloatAngle of rotation in degrees.

rotateTransform(float angle, int order)

public final void rotateTransform(float angle, int order)

Applies the specified rotation to the transformation matrix of this Graphics in the specified order.

Parameters:

ParameterTypeDescription
anglefloatAngle of rotation in degrees.
orderintMember of the MatrixOrder enumeration that specifies whether the rotation is appended or prepended to the matrix transformation.

multiplyTransform(Matrix matrix)

public final void multiplyTransform(Matrix matrix)

Multiplies the world transformation of this Graphics and specified the Matrix.

Parameters:

ParameterTypeDescription
matrixMatrix4x4 Matrix that multiplies the world transformation.

multiplyTransform(Matrix matrix, int order)

public final void multiplyTransform(Matrix matrix, int order)

Multiplies the world transformation of this Graphics and specified the Matrix in the specified order.

Parameters:

ParameterTypeDescription
matrixMatrix4x4 Matrix that multiplies the world transformation.
orderintMember of the MatrixOrder enumeration that determines the order of the multiplication.

setClip(Graphics g, int combineMode)

public final void setClip(Graphics g, int combineMode)

Sets the clipping region of this Graphics to the result of the specified combining operation of the current clip region and the Clip property of the specified Graphics.

Parameters:

ParameterTypeDescription
gGraphicsThe Graphics that specifies the clip region to combine.
combineModeintThe member of the CombineMode enumeration that specifies the combining operation to use.

setClip(Rectangle rect, int combineMode)

public final void setClip(Rectangle rect, int combineMode)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.

Parameters:

ParameterTypeDescription
rectRectangleThe Rectangle structure to combine.
combineModeintThe Member of the CombineMode enumeration that specifies the combining operation to use.

setClip(RectangleF rect, int combineMode)

public final void setClip(RectangleF rect, int combineMode)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure.

Parameters:

ParameterTypeDescription
rectRectangleFThe Rectangle structure to combine.
combineModeintThe combine mode.

setClip(GraphicsPath path, int combineMode)

public final void setClip(GraphicsPath path, int combineMode)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified GraphicsPath.

Parameters:

ParameterTypeDescription
pathGraphicsPathThe GraphicsPath to combine..
combineModeintThe member of the CombineMode enumeration that specifies the combining operation to use..

setClip(Region region, int combineMode)

public final void setClip(Region region, int combineMode)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified Region.

Parameters:

ParameterTypeDescription
regionRegionRegion to combine.
combineModeintMember from the CombineMode enumeration that specifies the combining operation to use.

getHdc()

public final byte[] getHdc()

Gets the handle to the device context associated with this Graphics.

Returns: byte[] - Handle to the device context associated with this Graphics.

getNearestColor(Color color)

public final Color getNearestColor(Color color)

Gets the nearest color to the specified Color structure.

Parameters:

ParameterTypeDescription
colorColorColor structure for which to find a match.

Returns: Color - A Color structure that represents the nearest color to the one specified with the color parameter.

intersectClip(Region region)

public final void intersectClip(Region region)

Updates the clip region of this Graphics to the intersection of the current clip region and the specified Region.

Parameters:

ParameterTypeDescription
regionRegionRegion to intersect with the current region.

intersectClip(Rectangle rect)

public final void intersectClip(Rectangle rect)

Updates the clip region of this Graphics to the intersection of the current clip region and the specified Rectangle structure.

Parameters:

ParameterTypeDescription
rectRectangleRectangle structure to intersect with the current clip region.

intersectClip(RectangleF rect)

public final void intersectClip(RectangleF rect)

Updates the clip region of this Graphics to the intersection of the current clip region and the specified RectangleF structure.

Parameters:

ParameterTypeDescription
rectRectangleFRectangleF structure to intersect with the current clip region.

isVisible(int x, int y)

public final boolean isVisible(int x, int y)

Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
xintThe x-coordinate of the point to test for visibility.
yintThe y-coordinate of the point to test for visibility.

Returns: boolean - true if the point defined by the x and y parameters is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(Point point)

public final boolean isVisible(Point point)

Indicates whether the specified Point structure is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
pointPointPoint structure to test for visibility.

Returns: boolean - true if the point is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(float x, float y)

public final boolean isVisible(float x, float y)

Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
xfloatThe x-coordinate of the point to test for visibility.
yfloatThe y-coordinate of the point to test for visibility.

Returns: boolean - true if the point defined by the x and y parameters is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(PointF point)

public final boolean isVisible(PointF point)

Indicates whether the specified PointF structure is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
pointPointFPointF structure to test for visibility.

Returns: boolean - true if the point defined by the point parameter is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(int x, int y, int width, int height)

public final boolean isVisible(int x, int y, int width, int height)

Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
xintThe x-coordinate of the upper-left corner of the rectangle to test for visibility.
yintThe y-coordinate of the upper-left corner of the rectangle to test for visibility.
widthintWidth of the rectangle to test for visibility.
heightintHeight of the rectangle to test for visibility.

Returns: boolean - trueif the rectangle defined by the x, y, width, and height parameters is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(Rectangle rect)

public final boolean isVisible(Rectangle rect)

Indicates whether the rectangle specified by a Rectangle structure is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
rectRectangleRectangle structure to test for visibility.

Returns: boolean - true if the rectangle specified by the rect parameter is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(float x, float y, float width, float height)

public final boolean isVisible(float x, float y, float width, float height)

Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
xfloatThe x-coordinate of the upper-left corner of the rectangle to test for visibility.
yfloatThe y-coordinate of the upper-left corner of the rectangle to test for visibility.
widthfloatWidth of the rectangle to test for visibility.
heightfloatHeight of the rectangle to test for visibility.

Returns: boolean - trueif the rectangle defined by the x, y, width, and height parameters is contained within the visible clip region of this Graphics; otherwise, false.

isVisible(RectangleF rect)

public final boolean isVisible(RectangleF rect)

Indicates whether the rectangle specified by a RectangleF structure is contained within the visible clip region of this Graphics.

Parameters:

ParameterTypeDescription
rectRectangleFRectangleF structure to test for visibility.

Returns: boolean - true if the rectangle specified by the rect parameter is contained within the visible clip region of this Graphics; otherwise, false.

releaseHdc(byte[] hdc)

public final void releaseHdc(byte[] hdc)

Releases a device context handle obtained by a previous call to the M:Graphics.GetHdc method of this Graphics.

Parameters:

ParameterTypeDescription
hdcbyte[]Handle to a device context obtained by a previous call to the M:Graphics.GetHdc method of this Graphics.

releaseHdc()

public final void releaseHdc()

Releases a device context handle obtained by a previous call to the M:Graphics.GetHdc method of this Graphics.

save()

public final GraphicsState save()

Saves the current state of this Graphics and identifies the saved state with a GraphicsState.

Returns: GraphicsState - Returns a GraphicsState that represents the saved state of this Graphics.

restore(GraphicsState gstate)

public final void restore(GraphicsState gstate)

Restores the state of this Graphics to the state represented by a GraphicsState.

Parameters:

ParameterTypeDescription
gstateGraphicsStateThe gstate.

resetClip()

public final void resetClip()

Resets the clip region of this Graphics to an infinite region.

beginContainer()

public final GraphicsContainer beginContainer()

Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.

Returns: GraphicsContainer - This method returns a GraphicsContainer that represents the state of this Graphics at the time of the method call.

beginContainer(Rectangle dstrect, Rectangle srcrect, int unit)

public final GraphicsContainer beginContainer(Rectangle dstrect, Rectangle srcrect, int unit)

Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.

Parameters:

ParameterTypeDescription
dstrectRectangleRectangle structure that, together with the srcrect parameter, specifies a scale transformation for the container.
srcrectRectangleRectangle structure that, together with the dstrect parameter, specifies a scale transformation for the container.
unitintMember of the GraphicsUnit enumeration that specifies the unit of measure for the container.

Returns: GraphicsContainer - This method returns a GraphicsContainer that represents the state of this Graphics at the time of the method call.

beginContainer(RectangleF dstrect, RectangleF srcrect, int unit)

public final GraphicsContainer beginContainer(RectangleF dstrect, RectangleF srcrect, int unit)

Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.

Parameters:

ParameterTypeDescription
dstrectRectangleFRectangleF structure that, together with the srcrect parameter, specifies a scale transformation for the container.
srcrectRectangleFRectangleF structure that, together with the dstrect parameter, specifies a scale transformation for the container.
unitintMember of the GraphicsUnit enumeration that specifies the unit of measure for the container.

Returns: GraphicsContainer - This method returns a GraphicsContainer that represents the state of this Graphics at the time of the method call.

endContainer(GraphicsContainer container)

public final void endContainer(GraphicsContainer container)

Closes the current graphics container and restores the state of this Graphics to the state saved by a call to the .beginContainer method.

Parameters:

ParameterTypeDescription
containerGraphicsContainerGraphicsContainer that represents the container this method restores.

excludeClip(Region region)

public final void excludeClip(Region region)

Updates the clip region of this Graphics to exclude the area specified by a Region.

Parameters:

ParameterTypeDescription
regionRegionRegion that specifies the region to exclude from the clip region.

excludeClip(Rectangle rect)

public final void excludeClip(Rectangle rect)

Updates the clip region of this Graphics to exclude the area specified by a Rectangle

Parameters:

ParameterTypeDescription
rectRectangleRectangle that specifies the rectangle to exclude from the clip region.

enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointFPointF structure that specifies the location of the upper-left corner of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointFPointF structure that specifies the location of the upper-left corner of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]

enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback)

Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPointF[]Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback)

Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointPoint structure that specifies the location of the upper-left corner of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPoint
callbackEnumerateMetafileProcByte
callbackDatabyte[]

enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointPoint structure that specifies the location of the upper-left corner of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback)

Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]

enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, RectangleF destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback)

Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleRectangle structure that specifies the location and size of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, PointF destPoint, Graphics.EnumerateMetafileProcByte callback)

Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointF
callbackEnumerateMetafileProcByte

enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPointF[]Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]

enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPoint[]Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]

enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback)

Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPoint[]Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPoint[]Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPoint[]Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]

enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPoint[]Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPointF[]Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

public final void enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPointF[]Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]

enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

Sends the records in a selected rectangle from a SMetafile, one at a time, to a callback method for display in a specified parallelogram.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPointF[]Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleRectangle structure that specifies the location and size of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

public final void enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleRectangle structure that specifies the location and size of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]

enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleRectangle structure that specifies the location and size of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, PointF[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPointF[]Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointPoint structure that specifies the location of the upper-left corner of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

public final void enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointPoint structure that specifies the location of the upper-left corner of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]

enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointPoint structure that specifies the location of the upper-left corner of the drawn metafile.
srcRectRectangleRectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

public final void enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData)

Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleRectangleF structure that specifies the location and size of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]

enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int unit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointFPointF structure that specifies the location of the upper-left corner of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

public final void enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointFPointF structure that specifies the location of the upper-left corner of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]

enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

public final void enumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback)

Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointPointFPointF structure that specifies the location of the upper-left corner of the drawn metafile.
srcRectRectangleFSystem.Drawing.RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of theGraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.

enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, Point[] destPoints, Graphics.EnumerateMetafileProcByte callback, byte[] bytes, ImageAttributes imageAttr)

Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destPointsPoint[]Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

public final void enumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, int srcUnit, Graphics.EnumerateMetafileProcByte callback, byte[] bytes)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn metafile.
srcRectRectangleFRectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnitintMember of the GraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
bytesbyte[]

enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

public final void enumerateMetafile(Metafile metafile, Rectangle destRect, Graphics.EnumerateMetafileProcByte callback, byte[] callbackData, ImageAttributes imageAttr)

Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.

Parameters:

ParameterTypeDescription
metafileMetafileMetafile to enumerate.
destRectRectangleRectangle structure that specifies the location and size of the drawn metafile.
callbackEnumerateMetafileProcByteEnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.
callbackDatabyte[]
imageAttrImageAttributesImageAttributes that specifies image attribute information for the drawn image.

addMetafileComment(byte[] data)

public final void addMetafileComment(byte[] data)

Adds a comment to the current Metafile.

Parameters:

ParameterTypeDescription
databyte[]Array of bytes that contains the comment.

getImage()

public Image getImage()

Returns: Image