Graphics
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.IDisposable
public class Graphics implements System.IDisposable
Encapsulates drawing surface.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
hwnd | byte[] | 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:
Parameter | Type | Description |
---|---|---|
inBeginUpdateCall | boolean |
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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | int | a 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:
Parameter | Type | Description |
---|---|---|
value | Region | a 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:
Parameter | Type | Description |
---|---|---|
g | Graphics | The 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:
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The 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:
Parameter | Type | Description |
---|---|---|
rect | RectangleF | The 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:
Parameter | Type | Description |
---|---|---|
path | GraphicsPath | The 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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | float | the 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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | int | a 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:
Parameter | Type | Description |
---|---|---|
value | Point | the 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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
value | Matrix | a 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image 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:
Parameter | Type | Description |
---|---|---|
upperLeftSource | Point | The point at the upper-left corner of the source rectangle. |
upperLeftDestination | Point | The point at the upper-left corner of the destination rectangle. |
blockRegionSize | Size | The 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:
Parameter | Type | Description |
---|---|---|
sourceX | int | The x-coordinate of the point at the upper-left corner of the source rectangle. |
sourceY | int | The y-coordinate of the point at the upper-left corner of the source rectangle. |
destinationX | int | The x-coordinate of the point at the upper-left corner of the destination rectangle. |
destinationY | int | The y-coordinate of the point at the upper-left corner of the destination rectangle. |
blockRegionSize | Size | The size of the area to be transferred. |
copyPixelOperation | int | One 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:
Parameter | Type | Description |
---|---|---|
upperLeftSource | Point | The point at the upper-left corner of the source rectangle. |
upperLeftDestination | Point | The point at the upper-left corner of the destination rectangle. |
blockRegionSize | Size | The size of the area to be transferred.. |
copyPixelOperation | int | ne 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:
Parameter | Type | Description |
---|---|---|
color | Color | Color 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the arc. |
rect | RectangleF | RectangleF structure that defines the boundaries of the ellipse. |
startAngle | float | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweepAngle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the arc. |
x | float | The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
y | float | The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
width | float | Width of the rectangle that defines the ellipse. |
height | float | Height of the rectangle that defines the ellipse. |
startAngle | float | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
sweepAngle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
pt1 | PointF | PointF structure that represents the starting point of the curve. |
pt2 | PointF | PointF structure that represents the first control point for the curve. |
pt3 | PointF | PointF structure that represents the second control point for the curve. |
pt4 | PointF | PointF structure that represents the ending point of the curve. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
x1 | float | The x-coordinate of the starting point of the curve. |
y1 | float | The y-coordinate of the starting point of the curve. |
x2 | float | The x-coordinate of the first control point of the curve. |
y2 | float | The y-coordinate of the first control point of the curve. |
x3 | float | The x-coordinate of the second control point of the curve. |
y3 | float | The y-coordinate of the second control point of the curve. |
x4 | float | The x-coordinate of the ending point of the curve. |
y4 | float | The y-coordinate of the ending point of the curve. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | PointF[] | Array of Point structures that represent the points that determine the curve. 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | Point[] | 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
fillmode | int | Member 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | Array of Point structures that define the spline. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
fillmode | int | Member 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and height of the curve. |
points | Point[] | 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | PointF[] | 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | Point[] | 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | Point[] | Array of Point structures that define the spline. |
tension | float | Value 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
offset | int | Offset from the first element in the array of the points parameter to the starting point in the curve. |
numberOfSegments | int | Number 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
offset | int | Offset from the first element in the array of the points parameter to the starting point in the curve. |
numberOfSegments | int | Number of segments after the starting point to include in the curve. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | Point[] | Array of Point structures that define the spline. |
offset | int | Offset from the first element in the array of the points parameter to the starting point in the curve. |
numberOfSegments | int | Number of segments after the starting point to include in the curve. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the curve. |
points | PointF[] | Array of PointF structures that define the spline. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
drawEllipse(Pen pen, RectangleF rect)
public final void drawEllipse(Pen pen, RectangleF rect)
Draws an ellipse defined by a bounding RectangleF.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the ellipse. |
rect | RectangleF | RectangleF structure that defines the boundaries of the ellipse. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the ellipse. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | float | Width of the bounding rectangle that defines the ellipse. |
height | float | Height of the bounding rectangle that defines the ellipse. |
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:
Parameter | Type | Description |
---|---|---|
icon | Icon | Icon to draw. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
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:
Parameter | Type | Description |
---|---|---|
icon | Icon | Icon to draw. |
targetRect | Rectangle | Rectangle 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:
Parameter | Type | Description |
---|---|---|
icon | Icon | Icon to draw. |
targetRect | Rectangle | Rectangle 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | float | The x-coordinate of the upper-left corner of the drawn image. |
y | float | The y-coordinate of the upper-left corner of the drawn image. |
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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
point | Point | Point 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | Point[] | 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
point | PointF | PointF 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | PointF[] | 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
width | int | Width of the drawn image. |
height | int | Height of the drawn image. |
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:
Parameter | Type | Description |
---|---|---|
image | Image | The Image to draw. |
rect | Rectangle | The 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:
Parameter | Type | Description |
---|---|---|
image | Image | The Image to draw. |
rect | RectangleF | The 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | float | The x-coordinate of the upper-left corner of the drawn image. |
y | float | The y-coordinate of the upper-left corner of the drawn image. |
width | float | The width of the drawn image. |
height | float | The 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | float | The x-coordinate of the upper-left corner of the drawn image. |
y | float | The y-coordinate of the upper-left corner of the drawn image. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | Point[] | Array of three Point structures that define a parallelogram. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | Point[] | Array of three Point structures that define a parallelogram. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | int | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | int | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | int | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | int | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | int | Width of the portion of the source image to draw. |
srcHeight | int | Height of the portion of the source image to draw. |
srcUnit | int | Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle. |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | int | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | int | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | int | Width of the portion of the source image to draw. |
srcHeight | int | Height of the portion of the source image to draw |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | float | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | float | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | float | Width of the portion of the source image to draw. |
srcHeight | float | Height of the portion of the source image to draw |
srcUnit | int | Member 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | float | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | float | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | float | Width of the portion of the source image to draw. |
srcHeight | float | Height of the portion of the source image to draw |
srcUnit | int | Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle. |
imageAttrs | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
point | Point | Point 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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
rect | Rectangle | Rectangle that specifies the upper-left corner of the drawn image. The X and Y properties of the rectangle specify the upper-left corner. The Width and Height properties are ignored. |
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:
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
x | int | The x-coordinate of the upper-left corner of the drawn image. |
y | int | The y-coordinate of the upper-left corner of the drawn image. |
width | int | The width of the drawn image. |
height | int | The 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:
Parameter | Type | Description |
---|---|---|
image | Image | The Image to draw. |
rect | Rectangle | The 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
pt1 | Point | Point structure that represents the first point to connect. |
pt2 | Point | Point 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
x1 | int | The x-coordinate of the first point. |
y1 | int | The y-coordinate of the first point. |
x2 | int | The x-coordinate of the second point. |
y2 | int | The y-coordinate of the second point. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
pt1 | PointF | PointF structure that represents the first point to connect. |
pt2 | PointF | PointF 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
x1 | float | The x-coordinate of the first point. |
y1 | float | The y-coordinate of the first point. |
x2 | float | The x-coordinate of the second point. |
y2 | float | The y-coordinate of the second point. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line segments. |
points | PointF[] | 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line segments. |
points | Point[] | Array of Point structures that represent the points to connect. |
drawPath(Pen pen, GraphicsPath path)
public final void drawPath(Pen pen, GraphicsPath path)
Draws a GraphicsPath.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the path. |
path | GraphicsPath | GraphicsPath to draw. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the pie shape. |
rect | RectangleF | RectangleF structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. |
startAngle | float | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweepAngle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the pie shape. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. |
width | float | Width of the bounding rectangle that defines the ellipse from which the pie shape comes. |
height | float | Height of the bounding rectangle that defines the ellipse from which the pie shape comes. |
startAngle | float | Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. |
sweepAngle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the polygon. |
points | Point[] | 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the polygon. |
points | PointF[] | Array of PointF structures that represent the vertices of the polygon. |
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:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the rectangle. |
x | int | The x-coordinate of the upper-left corner of the rectangle to draw. |
y | int | The y-coordinate of the upper-left corner of the rectangle to draw. |
width | int | Width of the rectangle to draw. |
height | int | Height 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | A Pen that determines the color, width, and style of the rectangle. |
rect | Rectangle | A 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:
Parameter | Type | Description |
---|---|---|
pen | Pen | A Pen that determines the color, width, and style of the rectangle. |
x | float | The x-coordinate of the upper-left corner of the rectangle to draw. |
y | float | The y-coordinate of the upper-left corner of the rectangle to draw. |
width | float | The width of the rectangle to draw. |
height | float | The height of the rectangle to draw. |
drawRectangles(Pen pen, RectangleF[] rects)
public final void drawRectangles(Pen pen, RectangleF[] rects)
Draws a series of rectangles specified by RectangleF structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the outlines of the rectangles. |
rects | RectangleF[] | Array of RectangleF structures that represent the rectangles to draw. |
drawRectangles(Pen pen, Rectangle[] rects)
public final void drawRectangles(Pen pen, Rectangle[] rects)
Draws a series of rectangles specified by Rectangle structures.
Parameters:
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the outlines of the rectangles. |
rects | Rectangle[] | Array of 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:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
layoutRectangle | RectangleF | RectangleF 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:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
point | PointF | PointF structure that specifies the upper-left corner of the drawn text. |
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:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
point | PointF | PointF structure that specifies the upper-left corner of the drawn text. |
format | StringFormat | StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
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:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
x | float | The x-coordinate of the upper-left corner of the drawn text. |
y | float | The y-coordinate of the upper-left corner of the drawn text. |
format | StringFormat | StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
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:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
x | float | The x-coordinate of the upper-left corner of the drawn text. |
y | float | The y-coordinate of the upper-left corner of the drawn text. |
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:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | String to draw. |
font | Font | Font that defines the text format of the string. |
brush | Brush | Brush that determines the color and texture of the drawn text. |
layoutRectangle | RectangleF | RectangleF structure that specifies the location of the drawn text. |
format | StringFormat | StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | A Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that define the spline. |
fillmode | int | Member of the FillMode enumeration that determines how the curve is filled. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that define the spline. |
fillmode | int | Member 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of Point structures that define the spline. |
fillmode | int | Member 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of Point structures that define the spline. |
fillmode | int | Member of the FillMode enumeration that determines how the curve is filled. |
tension | float | Value greater than or equal to 0.0F that specifies the tension of the curve. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | RectangleF | RectangleF structure that represents the bounding rectangle that defines the ellipse. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width | float | Width of the bounding rectangle that defines the ellipse. |
height | float | Height of the bounding rectangle that defines the ellipse. |
fillPath(Brush brush, GraphicsPath path)
public final void fillPath(Brush brush, GraphicsPath path)
Fills the interior of a GraphicsPath.
Parameters:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
path | GraphicsPath | GraphicsPath that represents the path to fill. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | Rectangle | Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes. |
startAngle | float | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweepAngle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | float | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
y | float | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
width | float | Width of the bounding rectangle that defines the ellipse from which the pie section comes. |
height | float | Height of the bounding rectangle that defines the ellipse from which the pie section comes. |
startAngle | float | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweepAngle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | int | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
y | int | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes. |
width | int | Width of the bounding rectangle that defines the ellipse from which the pie section comes. |
height | int | Height of the bounding rectangle that defines the ellipse from which the pie section comes. |
startAngle | int | Angle in degrees measured clockwise from the x-axis to the first side of the pie section. |
sweepAngle | int | Angle 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that represent the vertices of the polygon to fill. |
fillMode | int | Member 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | PointF[] | Array of PointF structures that represent the vertices of the polygon to fill. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
points | Point[] | Array of Point structures that represent the vertices of the polygon to fill. |
fillMode | int | Member 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
x | float | The x-coordinate of the upper-left corner of the rectangle to fill. |
y | float | The y-coordinate of the upper-left corner of the rectangle to fill. |
width | float | Width of the rectangle to fill. |
height | float | Height of the rectangle to fill. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rect | RectangleF | RectangleF 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rects | Rectangle[] | Array of Rectangle structures that represent the rectangles to fill. |
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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
rects | RectangleF[] | 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:
Parameter | Type | Description |
---|---|---|
brush | Brush | Brush that determines the characteristics of the fill. |
region | Region | Region 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:
Parameter | Type | Description |
---|---|---|
intention | int | Member 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font that defines the text format of the string. |
layoutArea | SizeF | SizeF 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font that defines the text format of the string. |
width | int | Maximum 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font defines the text format of the string. |
origin | PointF | PointF structure that represents the upper-left corner of the string. |
stringFormat | StringFormat | StringFormat 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font that defines the text format of the string. |
width | int | Maximum width of the string. |
format | StringFormat | StringFormat 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font defines the text format of the string. |
layoutArea | SizeF | SizeF structure that specifies the maximum layout area for the text. |
stringFormat | StringFormat | StringFormat 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font defines the text format of the string. |
layoutArea | SizeF | SizeF structure that specifies the maximum layout area for the text. |
stringFormat | StringFormat | StringFormat that represents formatting information, such as line spacing, for the string. |
charactersFitted | int[] | Number of characters in the string. |
linesFilled | int[] | 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | String to measure. |
font | Font | Font that defines the text format of the string. |
layoutRect | RectangleF | RectangleF structure that specifies the layout rectangle for the string. |
stringFormat | StringFormat | StringFormat 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:
Parameter | Type | Description |
---|---|---|
destSpace | int | Member of the CoordinateSpace enumeration that specifies the destination coordinate space. |
srcSpace | int | Member of the CoordinateSpace enumeration that specifies the source coordinate space. |
pts | PointF[] | 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:
Parameter | Type | Description |
---|---|---|
destSpace | int | Member of the CoordinateSpace enumeration that specifies the destination coordinate space. |
srcSpace | int | Member of the CoordinateSpace enumeration that specifies the source coordinate space. |
pts | Point[] | 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:
Parameter | Type | Description |
---|---|---|
dx | int | The x-coordinate of the translation. |
dy | int | The 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:
Parameter | Type | Description |
---|---|---|
dx | float | The x-coordinate of the translation. |
dy | float | The 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:
Parameter | Type | Description |
---|---|---|
dx | float | The x-coordinate of the translation. |
dy | float | The 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:
Parameter | Type | Description |
---|---|---|
dx | float | The x-coordinate of the translation. |
dy | float | The y-coordinate of the translation. |
order | int | Member 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:
Parameter | Type | Description |
---|---|---|
sx | float | Scale factor in the x direction. |
sy | float | Scale 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:
Parameter | Type | Description |
---|---|---|
sx | float | Scale factor in the x direction. |
sy | float | Scale factor in the y direction. |
order | int | Member 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:
Parameter | Type | Description |
---|---|---|
angle | float | Angle 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:
Parameter | Type | Description |
---|---|---|
angle | float | Angle of rotation in degrees. |
order | int | Member 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:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | 4x4 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:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | 4x4 Matrix that multiplies the world transformation. |
order | int | Member 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:
Parameter | Type | Description |
---|---|---|
g | Graphics | The Graphics that specifies the clip region to combine. |
combineMode | int | The 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:
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The Rectangle structure to combine. |
combineMode | int | The 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:
Parameter | Type | Description |
---|---|---|
rect | RectangleF | The Rectangle structure to combine. |
combineMode | int | The 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:
Parameter | Type | Description |
---|---|---|
path | GraphicsPath | The GraphicsPath to combine.. |
combineMode | int | The 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:
Parameter | Type | Description |
---|---|---|
region | Region | Region to combine. |
combineMode | int | Member 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:
Parameter | Type | Description |
---|---|---|
color | Color | Color 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:
Parameter | Type | Description |
---|---|---|
region | Region | Region 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:
Parameter | Type | Description |
---|---|---|
rect | Rectangle | Rectangle 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:
Parameter | Type | Description |
---|---|---|
rect | RectangleF | RectangleF 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:
Parameter | Type | Description |
---|---|---|
x | int | The x-coordinate of the point to test for visibility. |
y | int | The 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:
Parameter | Type | Description |
---|---|---|
point | Point | Point 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:
Parameter | Type | Description |
---|---|---|
x | float | The x-coordinate of the point to test for visibility. |
y | float | The 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:
Parameter | Type | Description |
---|---|---|
point | PointF | PointF 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:
Parameter | Type | Description |
---|---|---|
x | int | The x-coordinate of the upper-left corner of the rectangle to test for visibility. |
y | int | The y-coordinate of the upper-left corner of the rectangle to test for visibility. |
width | int | Width of the rectangle to test for visibility. |
height | int | Height of the rectangle to test for visibility. |
Returns:
boolean - true
if 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:
Parameter | Type | Description |
---|---|---|
rect | Rectangle | Rectangle 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:
Parameter | Type | Description |
---|---|---|
x | float | The x-coordinate of the upper-left corner of the rectangle to test for visibility. |
y | float | The y-coordinate of the upper-left corner of the rectangle to test for visibility. |
width | float | Width of the rectangle to test for visibility. |
height | float | Height of the rectangle to test for visibility. |
Returns:
boolean - true
if 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:
Parameter | Type | Description |
---|---|---|
rect | RectangleF | RectangleF 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:
Parameter | Type | Description |
---|---|---|
hdc | byte[] | 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:
Parameter | Type | Description |
---|---|---|
gstate | GraphicsState | The 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:
Parameter | Type | Description |
---|---|---|
dstrect | Rectangle | Rectangle structure that, together with the srcrect parameter, specifies a scale transformation for the container. |
srcrect | Rectangle | Rectangle structure that, together with the dstrect parameter, specifies a scale transformation for the container. |
unit | int | Member 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:
Parameter | Type | Description |
---|---|---|
dstrect | RectangleF | RectangleF structure that, together with the srcrect parameter, specifies a scale transformation for the container. |
srcrect | RectangleF | RectangleF structure that, together with the dstrect parameter, specifies a scale transformation for the container. |
unit | int | Member 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:
Parameter | Type | Description |
---|---|---|
container | GraphicsContainer | GraphicsContainer 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:
Parameter | Type | Description |
---|---|---|
region | Region | Region 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:
Parameter | Type | Description |
---|---|---|
rect | Rectangle | Rectangle 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | PointF | PointF structure that specifies the location of the upper-left corner of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | PointF | PointF structure that specifies the location of the upper-left corner of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | Point | Point structure that specifies the location of the upper-left corner of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | Point | |
callback | EnumerateMetafileProcByte | |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | Point | Point structure that specifies the location of the upper-left corner of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | PointF | |
callback | EnumerateMetafileProcByte |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | Point[] | Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | Point[] | Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | Point[] | Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
unit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | Point[] | Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | Point[] | Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
unit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
unit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
unit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | Point | Point structure that specifies the location of the upper-left corner of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
unit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | Point | Point structure that specifies the location of the upper-left corner of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | Point | Point structure that specifies the location of the upper-left corner of the drawn metafile. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | Rectangle | RectangleF structure that specifies the location and size of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | PointF | PointF structure that specifies the location of the upper-left corner of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
unit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | PointF | PointF structure that specifies the location of the upper-left corner of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoint | PointF | PointF structure that specifies the location of the upper-left corner of the drawn metafile. |
srcRect | RectangleF | System.Drawing.RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destPoints | Point[] | Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn metafile. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw. |
srcUnit | int | Member 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. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
bytes | byte[] |
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:
Parameter | Type | Description |
---|---|---|
metafile | Metafile | Metafile to enumerate. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn metafile. |
callback | EnumerateMetafileProcByte | EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent. |
callbackData | byte[] | |
imageAttr | ImageAttributes | ImageAttributes 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:
Parameter | Type | Description |
---|---|---|
data | byte[] | Array of bytes that contains the comment. |
getImage()
public Image getImage()
Returns: Image