public class Graphics extends Object implements com.aspose.ms.System.IDisposable
Encapsulates drawing surface.
| Modifier and Type | Class and Description |
|---|---|
static class |
Graphics.DrawImageAbort |
static class |
Graphics.EnumerateMetafileProc |
static class |
Graphics.EnumerateMetafileProcByte |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetafileComment(byte[] data)
Adds a comment to the current
Metafile. |
GraphicsContainer |
beginContainer()
Saves a graphics container with the current state of this
Graphics and opens and uses a new graphics container. |
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. |
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. |
void |
clear(Color color)
Clears the entire drawing surface and fills it with the specified background color.
|
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. |
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. |
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. |
void |
dispose()
Releases all resources used by this Graphics.
|
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.
|
void |
drawArc(Pen pen,
RectangleF rect,
float startAngle,
float sweepAngle)
Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
|
void |
drawBezier(Pen pen,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
|
void |
drawBezier(Pen pen,
PointF pt1,
PointF pt2,
PointF pt3,
PointF pt4)
Draws a Bézier spline defined by four PointF structures.
|
void |
drawBeziers(Pen pen,
Point[] points)
Draws a series of Bézier splines from an array of
PointF structures. |
void |
drawBeziers(Pen pen,
PointF[] points)
Draws a series of Bézier splines from an array of
Point structures. |
void |
drawClosedCurve(Pen pen,
Point[] points)
Draws a closed cardinal spline defined by an array of
Point structures. |
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. |
void |
drawClosedCurve(Pen pen,
PointF[] points)
Draws a closed cardinal spline defined by an array of
PointF structures. |
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.
|
void |
drawCurve(Pen pen,
Point[] points)
Draws a cardinal spline through a specified array of
Point structures. |
void |
drawCurve(Pen pen,
Point[] points,
float tension)
Draws a cardinal spline through a specified array of
Point structures using a specified tension. |
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. |
void |
drawCurve(Pen pen,
PointF[] points)
Draws a cardinal spline through a specified array of
PointF structures. |
void |
drawCurve(Pen pen,
PointF[] points,
float tension)
Draws a cardinal spline through a specified array of
PointF structures using a specified tension. |
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. |
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. |
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.
|
void |
drawEllipse(Pen pen,
RectangleF rect)
Draws an ellipse defined by a bounding RectangleF.
|
void |
drawIcon(Icon icon,
int x,
int y)
Draws the image represented by the specified
Icon at the specified coordinates. |
void |
drawIcon(Icon icon,
Rectangle targetRect)
|
void |
drawIconUnstretched(Icon icon,
Rectangle targetRect)
Draws the image represented by the specified
Icon without scaling the image. |
void |
drawImage(Image image,
float x,
float y)
Draws the specified
Image, using its original physical size, at the specified location. |
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. |
void |
drawImage(Image image,
float x,
float y,
RectangleF srcRect,
int srcUnit)
Draws a portion of an image at a specified location.
|
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.
|
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.
|
void |
drawImage(Image image,
int x,
int y,
Rectangle srcRect,
int srcUnit)
Draws a portion of an image at a specified location.
|
void |
drawImage(Image image,
Point point)
Draws the specified Image, using its original physical size, at the specified location.
|
void |
drawImage(Image image,
Point[] destPoints)
Draws the specified
Е:Image at the specified location and with the specified shape and size. |
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. |
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. |
void |
drawImage(Image image,
PointF point)
Draws the specified
Image, using its original physical size, at the specified location. |
void |
drawImage(Image image,
PointF[] destPoints)
Draws the specified
Image at the specified location and with the specified shape and size. |
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.
|
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.
|
void |
drawImage(Image image,
Rectangle rect)
Draws the specified Image at the specified location and with the specified size.
|
void |
drawImage(Image image,
RectangleF rect)
Draws the specified Image at the specified location and with the specified size.
|
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. |
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. |
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.
|
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. |
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.
|
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.
|
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.
|
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.
|
void |
drawImageUnscaled(Image image,
Point point)
Draws a specified image using its original physical size at a specified location.
|
void |
drawImageUnscaled(Image image,
Rectangle rect)
Draws a specified image using its original physical size at a specified location.
|
void |
drawImageUnscaledAndClipped(Image image,
Rectangle rect)
Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
|
void |
drawLine(Pen pen,
float x1,
float y1,
float x2,
float y2)
Draws a line connecting the two points specified by the coordinate pairs.
|
void |
drawLine(Pen pen,
int x1,
int y1,
int x2,
int y2)
Draws a line connecting the two points specified by the coordinate pairs.
|
void |
drawLine(Pen pen,
PointF pt1,
PointF pt2)
Draws a line connecting two PointF structures.
|
void |
drawLine(Pen pen,
Point pt1,
Point pt2)
Draws a line connecting two
Point structures. |
void |
drawLines(Pen pen,
Point[] points)
Draws a series of line segments that connect an array of
Point structures. |
void |
drawLines(Pen pen,
PointF[] points)
Draws a series of line segments that connect an array of
PointF structures. |
void |
drawPath(Pen pen,
GraphicsPath path)
Draws a GraphicsPath.
|
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.
|
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.
|
void |
drawPolygon(Pen pen,
Point[] points)
Draws a polygon defined by an array of
Point structures. |
void |
drawPolygon(Pen pen,
PointF[] points)
Draws a polygon defined by an array of PointF structures.
|
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.
|
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.
|
void |
drawRectangle(Pen pen,
Rectangle rect)
Draws a rectangle specified by a Rectangle structure.
|
void |
drawRectangles(Pen pen,
Rectangle[] rects)
Draws a series of rectangles specified by
Rectangle structures. |
void |
drawRectangles(Pen pen,
RectangleF[] rects)
Draws a series of rectangles specified by
RectangleF structures. |
void |
drawString(String s,
Font font,
Brush brush,
float x,
float y)
|
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. |
void |
drawString(String s,
Font font,
Brush brush,
PointF point)
|
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. |
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. |
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. |
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 Graphics.beginContainer() method. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
void |
enumerateMetafile(Metafile metafile,
PointF[] destPoints,
RectangleF srcRect,
int srcUnit,
Graphics.EnumerateMetafileProcByte callback)
Sends the records in a selected rectangle from a S
Metafile, one at a time, to a callback method for display in a specified parallelogram. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
void |
excludeClip(Rectangle rect)
|
void |
excludeClip(Region region)
|
void |
fillClosedCurve(Brush brush,
Point[] points)
Fills the interior of a closed cardinal spline curve defined by an array of
Point structures. |
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. |
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. |
void |
fillClosedCurve(Brush brush,
PointF[] points)
Fills the interior of a closed cardinal spline curve defined by an array of
PointF structures. |
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. |
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.
|
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.
|
void |
fillEllipse(Brush brush,
RectangleF rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
|
void |
fillPath(Brush brush,
GraphicsPath path)
Fills the interior of a GraphicsPath.
|
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.
|
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.
|
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.
|
void |
fillPolygon(Brush brush,
Point[] points)
Fills the interior of a polygon defined by an array of points specified by
Point structures. |
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. |
void |
fillPolygon(Brush brush,
PointF[] points)
Fills the interior of a polygon defined by an array of points specified by
PointF structures. |
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.
|
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.
|
void |
fillRectangle(Brush brush,
RectangleF rect)
Fills the interior of a rectangle specified by a RectangleF structure.
|
void |
fillRectangles(Brush brush,
Rectangle[] rects)
Fills the interiors of a series of rectangles specified by
Rectangle structures. |
void |
fillRectangles(Brush brush,
RectangleF[] rects)
Fills the interiors of a series of rectangles specified by
RectangleF structures. |
void |
fillRegion(Brush brush,
Region region)
Fills the interior of a Region.
|
void |
flush()
Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
|
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.
|
static Graphics |
fromHwnd(byte[] hwnd)
Creates a new
Graphics from the specified handle to a window. |
static Graphics |
fromImage(Image image)
Creates a new Graphics from the specified Image.
|
Region |
getClip()
|
RectangleF |
getClipBounds()
Gets a
RectangleF structure that bounds the clipping region of this Graphics. |
int |
getCompositingMode()
Gets a value that specifies how composited images are drawn to this
Graphics. |
int |
getCompositingQuality()
Gets the rendering quality of composited images drawn to this
Graphics. |
float |
getDpiX()
Gets the horizontal resolution of this
Graphics. |
float |
getDpiY()
Gets the vertical resolution of this
Graphics. |
byte[] |
getHdc()
Gets the handle to the device context associated with this
Graphics. |
com.aspose.imaging.Image |
getImage() |
int |
getInterpolationMode()
Gets the interpolation mode associated with this Graphics.
|
Color |
getNearestColor(Color color)
Gets the nearest color to the specified
Color structure. |
float |
getPageScale()
Gets the scaling between world units and page units for this
Graphics. |
int |
getPageUnit()
Gets the unit of measure used for page coordinates in this
Graphics. |
int |
getPixelOffsetMode()
Gets a value specifying how pixels are offset during rendering of this
Graphics. |
Point |
getRenderingOrigin()
Gets the rendering origin of this
Graphics for dithering and for hatch brushes. |
int |
getSmoothingMode()
Gets the rendering quality for this Graphics.
|
int |
getTextContrast()
Gets the gamma correction value for rendering text.
|
int |
getTextRenderingHint()
Gets the rendering mode for text associated with this
Graphics. |
Matrix |
getTransform()
Gets a copy of the geometric world transformation for this
Graphics. |
RectangleF |
getVisibleClipBounds()
Gets the bounding rectangle of the visible clipping region of this
Graphics. |
void |
intersectClip(Rectangle rect)
|
void |
intersectClip(RectangleF rect)
Updates the clip region of this
Graphics to the intersection of the current clip region and the specified RectangleF structure. |
void |
intersectClip(Region region)
|
boolean |
isClipEmpty()
Gets a value indicating whether the clipping region of this
Graphics is empty. |
boolean |
isInBeginUpdateCall() |
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. |
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. |
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. |
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. |
boolean |
isVisible(Point point)
|
boolean |
isVisible(PointF point)
|
boolean |
isVisible(Rectangle rect)
|
boolean |
isVisible(RectangleF rect)
Indicates whether the rectangle specified by a
RectangleF structure is contained within the visible clip region of this Graphics. |
boolean |
isVisibleClipEmpty()
Gets a value indicating whether the visible clipping region of this
Graphics is empty. |
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. |
SizeF |
measureString(String text,
Font font)
Measures the specified string when drawn with the specified
Font. |
SizeF |
measureString(String text,
Font font,
int width)
Measures the specified string when drawn with the specified
Font. |
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. |
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. |
SizeF |
measureString(String text,
Font font,
SizeF layoutArea)
Measures the specified string when drawn with the specified
Font. |
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. |
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. |
void |
multiplyTransform(Matrix matrix)
Multiplies the world transformation of this
Graphics and specified the Matrix. |
void |
multiplyTransform(Matrix matrix,
int order)
Multiplies the world transformation of this
Graphics and specified
the Matrix in the specified order. |
void |
releaseHdc()
Releases a device context handle obtained by a previous call to
the
M:Graphics.GetHdc method of this Graphics. |
void |
releaseHdc(byte[] hdc)
Releases a device context handle obtained by a previous call to the
M:Graphics.GetHdc method
of this Graphics. |
void |
resetClip()
Resets the clip region of this
Graphics to an infinite region. |
void |
resetTransform()
Resets the world transformation matrix of this
Graphics to the identity matrix. |
void |
restore(GraphicsState gstate)
Restores the state of this
Graphics to the state represented by a GraphicsState. |
void |
rotateTransform(float angle)
Applies the specified rotation to the transformation matrix of this
Graphics. |
void |
rotateTransform(float angle,
int order)
Applies the specified rotation to the transformation matrix of this
Graphics in the specified order. |
GraphicsState |
save()
Saves the current state of this
Graphics and identifies the saved state with a GraphicsState. |
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. |
void |
scaleTransform(float sx,
float sy,
int order)
Applies the specified scaling operation to the transformation matrix of this
Graphics in the specified order. |
void |
setClip(Graphics g)
|
void |
setClip(Graphics g,
int combineMode)
|
void |
setClip(GraphicsPath path)
Sets the clipping region of this
Graphics to the specified GraphicsPath . |
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. |
void |
setClip(Rectangle rect)
|
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. |
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. |
void |
setClip(Rectangle rect,
int combineMode)
|
void |
setClip(Region value)
|
void |
setClip(Region region,
int combineMode)
|
void |
setCompositingMode(int value)
Sets a value that specifies how composited images are drawn to this
Graphics. |
void |
setCompositingQuality(int value)
Sets the rendering quality of composited images drawn to this
Graphics. |
void |
setInBeginUpdateCall(boolean inBeginUpdateCall) |
void |
setInterpolationMode(int value)
Sets the interpolation mode associated with this Graphics.
|
void |
setPageScale(float value)
Sets the scaling between world units and page units for this
Graphics. |
void |
setPageUnit(int value)
Sets the unit of measure used for page coordinates in this
Graphics. |
void |
setPixelOffsetMode(int value)
Sets a value specifying how pixels are offset during rendering of this
Graphics. |
void |
setRenderingOrigin(Point value)
Sets the rendering origin of this
Graphics for dithering and for hatch brushes. |
void |
setSmoothingMode(int value)
Sets the rendering quality for this Graphics.
|
void |
setTextContrast(int value)
Sets the gamma correction value for rendering text.
|
void |
setTextRenderingHint(int value)
Sets the rendering mode for text associated with this
Graphics. |
void |
setTransform(Matrix value)
Sets a copy of the geometric world transformation for this
Graphics. |
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. |
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. |
void |
translateClip(float dx,
float dy)
Translates the clipping region of this
Graphics by specified amounts in the horizontal and vertical directions. |
void |
translateClip(int dx,
int dy)
Translates the clipping region of this
Graphics by specified amounts in the horizontal and vertical directions. |
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. |
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. |
public static Graphics fromHwnd(byte[] hwnd)
Creates a new Graphics from the specified handle to a window.
hwnd - Handle to a window.Graphics for the specified window handle.public boolean isInBeginUpdateCall()
public void setInBeginUpdateCall(boolean inBeginUpdateCall)
public final int getCompositingQuality()
Gets the rendering quality of composited images drawn to this Graphics.
CompositingQuality(Graphics.getCompositingQuality()/Graphics.setCompositingQuality(int)) enumeration.public final void setCompositingQuality(int value)
Sets the rendering quality of composited images drawn to this Graphics.
value - the rendering quality of composited images drawn to this Graphics.public final int getCompositingMode()
Gets a value that specifies how composited images are drawn to this Graphics.
CompositingMode(Graphics.getCompositingMode()/Graphics.setCompositingMode(int)) enumeration. The default is CompositingMode.SourceOver.Graphics.public final void setCompositingMode(int value)
Sets a value that specifies how composited images are drawn to this Graphics.
CompositingMode(Graphics.getCompositingMode()/Graphics.setCompositingMode(int)) enumeration. The default is CompositingMode.SourceOver.value - a value that specifies how composited images are drawn to this Graphics.public final Region getClip()
public final void setClip(Region value)
public final void setClip(Graphics g)
g - The Graphics - to source the Clip property .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.
rect - The Rectangle structure to combine.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.
rect - The RectangleF structure to combine.public final void setClip(GraphicsPath path)
Sets the clipping region of this Graphics to the specified GraphicsPath .
path - The GraphicsPath that represents the new clip region.public final RectangleF getClipBounds()
Gets a RectangleF structure that bounds the clipping region of this Graphics.
RectangleF structure that bounds the clipping region of this Graphics.RectangleF structure that bounds the clipping region of this Graphics.public final boolean isClipEmpty()
Gets a value indicating whether the clipping region of this Graphics is empty.
true if the clipping region of this Graphics is empty; otherwise, false.Graphics is empty.public final RectangleF getVisibleClipBounds()
Gets the bounding rectangle of the visible clipping region of this Graphics.
RectangleF structure that represents a bounding rectangle for the visible clipping region of this Graphics.Graphics.public final boolean isVisibleClipEmpty()
Gets a value indicating whether the visible clipping region of this Graphics is empty.
true if the visible portion of the clipping region of this Graphics is empty; otherwise, false.Graphics is empty.public final float getDpiX()
Gets the horizontal resolution of this Graphics.
Graphics.public final float getDpiY()
Gets the vertical resolution of this Graphics.
Graphics.public final int getInterpolationMode()
Gets the interpolation mode associated with this Graphics.
public final void setInterpolationMode(int value)
Sets the interpolation mode associated with this Graphics.
value - the interpolation mode associated with this Graphics.public final float getPageScale()
Gets the scaling between world units and page units for this Graphics.
Graphics.public final void setPageScale(float value)
Sets the scaling between world units and page units for this Graphics.
value - the scaling between world units and page units for this Graphics.public final int getPageUnit()
Gets the unit of measure used for page coordinates in this Graphics.
GraphicsUnit values other than GraphicsUnit.World.public final void setPageUnit(int value)
Sets the unit of measure used for page coordinates in this Graphics.
value - the unit of measure used for page coordinates in this Graphics.public final int getPixelOffsetMode()
Gets a value specifying how pixels are offset during rendering of this Graphics.
PixelOffsetMode(Graphics.getPixelOffsetMode()/Graphics.setPixelOffsetMode(int)) enumeration.public final void setPixelOffsetMode(int value)
Sets a value specifying how pixels are offset during rendering of this Graphics.
value - a value specifying how pixels are offset during rendering of this Graphics.public final Point getRenderingOrigin()
Gets the rendering origin of this Graphics for dithering and for hatch brushes.
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.Graphics for dithering and for hatch brushes.public final void setRenderingOrigin(Point value)
Sets the rendering origin of this Graphics for dithering and for hatch brushes.
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.value - the rendering origin of this Graphics for dithering and for hatch brushes.public final int getSmoothingMode()
Gets the rendering quality for this Graphics.
public final void setSmoothingMode(int value)
Sets the rendering quality for this Graphics.
value - the rendering quality for this Graphics.public final int getTextContrast()
Gets the gamma correction value for rendering text.
Value: The gamma correction value used for rendering antialiased and ClearType text.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.value - the gamma correction value for rendering text.public final int getTextRenderingHint()
Gets the rendering mode for text associated with this Graphics.
Graphics.public final void setTextRenderingHint(int value)
Sets the rendering mode for text associated with this Graphics.
value - the rendering mode for text associated with this Graphics.public final Matrix getTransform()
Gets a copy of the geometric world transformation for this Graphics.
Matrix that represents the geometric world transformation
for this Graphics.public final void setTransform(Matrix value)
Sets a copy of the geometric world transformation for this Graphics.
value - a copy of the geometric world transformation for this Graphics.public static Graphics fromImage(Image image)
Creates a new Graphics from the specified Image.
image - Image from which to create the new Graphics.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.
upperLeftSource - The point at the upper-left corner of the source rectangle.upperLeftDestination - The point at the upper-left corner of the destination rectangle.blockRegionSize - The size of the area to be transferred.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.
sourceX - The x-coordinate of the point at the upper-left corner of the source rectangle.sourceY - The y-coordinate of the point at the upper-left corner of the source rectangle.destinationX - The x-coordinate of the point at the upper-left corner of the destination rectangle.destinationY - The y-coordinate of the point at the upper-left corner of the destination rectangle.blockRegionSize - The size of the area to be transferred.copyPixelOperation - One of the CopyPixelOperation values.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.
upperLeftSource - The point at the upper-left corner of the source rectangle.upperLeftDestination - The point at the upper-left corner of the destination rectangle.blockRegionSize - The size of the area to be transferred..copyPixelOperation - ne of the CopyPixelOperation values.public final void dispose()
Releases all resources used by this Graphics.
dispose in interface com.aspose.ms.System.IDisposablepublic final void clear(Color color)
Clears the entire drawing surface and fills it with the specified background color.
color - Color structure that represents the background color of the drawing surface.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.
pen - Pen that determines the color, width, and style of the arc.rect - RectangleF structure that defines the boundaries of the ellipse.startAngle - Angle in degrees measured clockwise from the x-axis to the starting point of the arc.sweepAngle - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.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.
pen - Pen that determines the color, width, and style of the arc.x - The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.y - The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.width - Width of the rectangle that defines the ellipse.height - Height of the rectangle that defines the ellipse.startAngle - Angle in degrees measured clockwise from the x-axis to the starting point of the arc.sweepAngle - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.public final void drawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)
Draws a Bézier spline defined by four PointF structures.
pen - Pen that determines the color, width, and style of the curve.pt1 - PointF structure that represents the starting point of the curve.pt2 - PointF structure that represents the first control point for the curve.pt3 - PointF structure that represents the second control point for the curve.pt4 - PointF structure that represents the ending point of the curve.public final void drawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
pen - Pen that determines the color, width, and style of the curve.x1 - The x-coordinate of the starting point of the curve.y1 - The y-coordinate of the starting point of the curve.x2 - The x-coordinate of the first control point of the curve.y2 - The y-coordinate of the first control point of the curve.x3 - The x-coordinate of the second control point of the curve.y3 - The y-coordinate of the second control point of the curve.x4 - The x-coordinate of the ending point of the curve.y4 - The y-coordinate of the ending point of the curve.public final void drawBeziers(Pen pen, PointF[] points)
Draws a series of Bézier splines from an array of Point structures.
public final void drawBeziers(Pen pen, Point[] points)
Draws a series of Bézier splines from an array of PointF structures.
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.
pen - Pen that determines the color, width, and height of the curve.points - Array of PointF structures that define the spline.tension - Value greater than or equal to 0.0F that specifies the tension of the curve.fillmode - Member of the FillMode enumeration that determines how the curve is filled.
This parameter is required but is ignored.public final void drawClosedCurve(Pen pen, PointF[] points)
Draws a closed cardinal spline defined by an array of PointF structures.
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.
pen - Pen that determines the color, width, and height of the curve.points - Array of Point structures that define the spline.tension - Value greater than or equal to 0.0F that specifies the tension of the curve.fillmode - Member of the FillMode enumeration that determines how the curve is filled.
This parameter is required but is ignored.public final void drawClosedCurve(Pen pen, Point[] points)
Draws a closed cardinal spline defined by an array of Point structures.
public final void drawCurve(Pen pen, PointF[] points)
Draws a cardinal spline through a specified array of PointF structures.
public final void drawCurve(Pen pen, Point[] points)
Draws a cardinal spline through a specified array of Point structures.
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.
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.
pen - Pen that determines the color, width, and style of the curve.points - Array of PointF structures that define the spline.offset - Offset from the first element in the array of the points parameter to the starting point in the curve.numberOfSegments - Number of segments after the starting point to include in the curve.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.
pen - Pen that determines the color, width, and style of the curve.points - Array of PointF structures that define the spline.offset - Offset from the first element in the array of the points parameter to the starting point in the curve.numberOfSegments - Number of segments after the starting point to include in the curve.tension - Value greater than or equal to 0.0F that specifies the tension of the curve.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.
pen - Pen that determines the color, width, and style of the curve.points - Array of Point structures that define the spline.offset - Offset from the first element in the array of the points parameter to the starting point in the curve.numberOfSegments - Number of segments after the starting point to include in the curve.tension - Value greater than or equal to 0.0F that specifies the tension of the curve.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.
public final void drawEllipse(Pen pen, RectangleF rect)
Draws an ellipse defined by a bounding RectangleF.
pen - Pen that determines the color, width, and style of the ellipse.rect - RectangleF structure that defines the boundaries of the ellipse.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.
pen - Pen that determines the color, width, and style of the ellipse.x - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.y - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.width - Width of the bounding rectangle that defines the ellipse.height - Height of the bounding rectangle that defines the ellipse.public final void drawIcon(Icon icon, int x, int y)
Draws the image represented by the specified Icon at the specified coordinates.
icon - Icon to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.public final void drawIconUnstretched(Icon icon, Rectangle targetRect)
Draws the image represented by the specified Icon without scaling the image.
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.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.public final void drawImage(Image image, float x, float y)
Draws the specified Image, using its original physical size, at the specified location.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.public final void drawImage(Image image, Point point)
Draws the specified Image, using its original physical size, at the specified location.
image - Image to draw.point - Point structure that represents the location of the upper-left corner of the drawn image.public final void drawImage(Image image, Point[] destPoints)
Draws the specified Е:Image at the specified location and with the specified shape and size.
public final void drawImage(Image image, PointF point)
Draws the specified Image, using its original physical size, at the specified location.
public final void drawImage(Image image, PointF[] destPoints)
Draws the specified Image at the specified location and with the specified shape and size.
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.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.width - Width of the drawn image.height - Height of the drawn image.public final void drawImage(Image image, Rectangle rect)
Draws the specified Image at the specified location and with the specified size.
image - The Image to draw.rect - The rectangle that specifies the location and size of the drawn image.public final void drawImage(Image image, RectangleF rect)
Draws the specified Image at the specified location and with the specified size.
image - The Image to draw.rect - The rectangle that specifies the location and size of the drawn image.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.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.width - The width of the drawn image.height - The height of the drawn image.public final void drawImage(Image image, int x, int y, Rectangle srcRect, int srcUnit)
Draws a portion of an image at a specified location.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.srcRect - Rectangle structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.public final void drawImage(Image image, float x, float y, RectangleF srcRect, int srcUnit)
Draws a portion of an image at a specified location.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.srcRect - RectangleF structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.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.
image - Image to draw.destPoints - Array of three PointF structures that define a parallelogram.srcRect - RectangleF structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used by
the srcRect parameter.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.
image - Image to draw.destPoints - Array of three Point structures that define a parallelogram.srcRect - Rectangle structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used by
the srcRect parameter.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.
image - Image to draw.destPoints - Array of three Point structures that define a parallelogram.srcRect - Rectangle structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used by
the srcRect parameter.imageAttr - ImageAttributes that specifies recoloring and gamma information for the image object.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.
image - Image to draw.destPoints - Array of three PointF structures that define a parallelogram.srcRect - RectangleF structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used by
the srcRect parameter.imageAttr - ImageAttributes that specifies recoloring and gamma information for the image object.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.
image - Image to draw.destRect - Rectangle structure that specifies the location and size of the drawn image.
The image is scaled to fit the rectangle.srcRect - Rectangle structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure
used by the srcRect parameter.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.
image - Image to draw.destRect - Rectangle structure that specifies the location and size of the drawn image.
The image is scaled to fit the rectangle.srcX - The x-coordinate of the upper-left corner of the portion of the source image to draw.srcY - The y-coordinate of the upper-left corner of the portion of the source image to draw.srcWidth - Width of the portion of the source image to draw.srcHeight - Height of the portion of the source image to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure
used to determine the source rectangle.imageAttr - ImageAttributes that specifies recoloring and gamma information for the image object.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.
image - Image to draw.destRect - RectangleF structure that specifies the location and size of the drawn image.
The image is scaled to fit the rectangle.srcRect - RectangleF structure that specifies the portion of the image object to draw.srcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure
used by the srcRect parameter.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.
image - Image to draw.destRect - Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.srcX - The x-coordinate of the upper-left corner of the portion of the source image to draw.srcY - The y-coordinate of the upper-left corner of the portion of the source image to draw.srcWidth - Width of the portion of the source image to draw.srcHeight - Height of the portion of the source image to drawsrcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.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.
image - Image to draw.destRect - Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.srcX - The x-coordinate of the upper-left corner of the portion of the source image to draw.srcY - The y-coordinate of the upper-left corner of the portion of the source image to draw.srcWidth - Width of the portion of the source image to draw.srcHeight - Height of the portion of the source image to drawsrcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.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.
image - Image to draw.destRect - Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.srcX - The x-coordinate of the upper-left corner of the portion of the source image to draw.srcY - The y-coordinate of the upper-left corner of the portion of the source image to draw.srcWidth - Width of the portion of the source image to draw.srcHeight - Height of the portion of the source image to drawsrcUnit - Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.imageAttrs - ImageAttributes that specifies recoloring and gamma information for the image object.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.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.public final void drawImageUnscaled(Image image, Point point)
Draws a specified image using its original physical size at a specified location.
public final void drawImageUnscaled(Image image, Rectangle rect)
Draws a specified image using its original physical size at a specified location.
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.
image - Image to draw.x - The x-coordinate of the upper-left corner of the drawn image.y - The y-coordinate of the upper-left corner of the drawn image.width - The width of the drawn image.height - The height of the drawn image.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.
public final void drawLine(Pen pen, Point pt1, Point pt2)
Draws a line connecting two Point structures.
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.
pen - Pen that determines the color, width, and style of the line.x1 - The x-coordinate of the first point.y1 - The y-coordinate of the first point.x2 - The x-coordinate of the second point.y2 - The y-coordinate of the second point.public final void drawLine(Pen pen, PointF pt1, PointF pt2)
Draws a line connecting two PointF structures.
pen - Pen that determines the color, width, and style of the line.pt1 - PointF structure that represents the first point to connect.pt2 - PointF structure that represents the second point to connect.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.
pen - Pen that determines the color, width, and style of the line.x1 - The x-coordinate of the first point.y1 - The y-coordinate of the first point.x2 - The x-coordinate of the second point.y2 - The y-coordinate of the second point.public final void drawLines(Pen pen, PointF[] points)
Draws a series of line segments that connect an array of PointF structures.
public final void drawLines(Pen pen, Point[] points)
Draws a series of line segments that connect an array of Point structures.
public final void drawPath(Pen pen, GraphicsPath path)
Draws a GraphicsPath.
pen - Pen that determines the color, width, and style of the path.path - GraphicsPath to draw.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.
pen - Pen that determines the color, width, and style of the pie shape.rect - RectangleF structure that represents the bounding rectangle
that defines the ellipse from which the pie shape comes.startAngle - Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.sweepAngle - Angle measured in degrees clockwise from the startAngle parameter
to the second side of the pie shape.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.
pen - Pen that determines the color, width, and style of the pie shape.x - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.y - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.width - Width of the bounding rectangle that defines the ellipse from which the pie shape comes.height - Height of the bounding rectangle that defines the ellipse from which the pie shape comes.startAngle - Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.sweepAngle - Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.public final void drawPolygon(Pen pen, Point[] points)
Draws a polygon defined by an array of Point structures.
public final void drawPolygon(Pen pen, PointF[] points)
Draws a polygon defined by an array of PointF structures.
pen - Pen that determines the color, width, and style of the polygon.points - Array of PointF structures that represent the vertices of the polygon.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.
pen - Pen that determines the color, width, and style of the rectangle.x - The x-coordinate of the upper-left corner of the rectangle to draw.y - The y-coordinate of the upper-left corner of the rectangle to draw.width - Width of the rectangle to draw.height - Height of the rectangle to draw.public final void drawRectangle(Pen pen, Rectangle rect)
Draws a rectangle specified by a Rectangle structure.
pen - A Pen that determines the color, width, and style of the rectangle.rect - A Rectangle structure that represents the rectangle to draw.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.
pen - A Pen that determines the color, width, and style of the rectangle.x - The x-coordinate of the upper-left corner of the rectangle to draw.y - The y-coordinate of the upper-left corner of the rectangle to draw.width - The width of the rectangle to draw.height - The height of the rectangle to draw.public final void drawRectangles(Pen pen, RectangleF[] rects)
Draws a series of rectangles specified by RectangleF structures.
pen - Pen that determines the color, width, and style of the outlines of the rectangles.rects - Array of RectangleF structures that represent the rectangles to draw.public final void drawRectangles(Pen pen, Rectangle[] rects)
Draws a series of rectangles specified by Rectangle structures.
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.
s - String to draw.font - Font that defines the text format of the string.brush - Brush that determines the color and texture of the drawn text.layoutRectangle - RectangleF structure that specifies the location of the drawn text
that are applied to the drawn text.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.
s - String to draw.font - Font that defines the text format of the string.brush - Brush that determines the color and texture of the drawn text.point - PointF structure that specifies the upper-left corner of the drawn text.format - StringFormat that specifies formatting attributes,
such as line spacing and alignment, that are applied to the drawn text.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.
s - String to draw.font - Font that defines the text format of the string.brush - Brush that determines the color and texture of the drawn text.x - The x-coordinate of the upper-left corner of the drawn text.y - The y-coordinate of the upper-left corner of the drawn text.format - StringFormat that specifies formatting attributes,
such as line spacing and alignment, that are applied to the drawn text.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.
s - String to draw.font - Font that defines the text format of the string.brush - Brush that determines the color and texture of the drawn text.layoutRectangle - RectangleF structure that specifies the location of the drawn text.format - StringFormat that specifies formatting attributes, such as line spacing and alignment,
that are applied to the drawn text.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.
brush - A Brush that determines the characteristics of the fill.points - Array of PointF structures that define the spline.fillmode - Member of the FillMode enumeration that determines how the curve is filled.tension - Value greater than or equal to 0.0F that specifies the tension of the curve.public final void fillClosedCurve(Brush brush, PointF[] points)
Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.
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.
public final void fillClosedCurve(Brush brush, Point[] points)
Fills the interior of a closed cardinal spline curve defined by an array of Point structures.
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.
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.
brush - Brush that determines the characteristics of the fill.points - Array of Point structures that define the spline.fillmode - Member of the FillMode enumeration that determines how the curve is filled.tension - Value greater than or equal to 0.0F that specifies the tension of the curve.public final void fillEllipse(Brush brush, RectangleF rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
brush - Brush that determines the characteristics of the fill.rect - RectangleF structure that represents the bounding rectangle that defines the ellipse.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.
brush - Brush that determines the characteristics of the fill.x - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.y - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.width - Width of the bounding rectangle that defines the ellipse.height - Height of the bounding rectangle that defines the ellipse.public final void fillPath(Brush brush, GraphicsPath path)
Fills the interior of a GraphicsPath.
brush - Brush that determines the characteristics of the fill.path - GraphicsPath that represents the path to fill.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.
brush - Brush that determines the characteristics of the fill.rect - Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes.startAngle - Angle in degrees measured clockwise from the x-axis to the first side of the pie section.sweepAngle - Angle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.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.
brush - Brush that determines the characteristics of the fill.x - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.y - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.width - Width of the bounding rectangle that defines the ellipse from which the pie section comes.height - Height of the bounding rectangle that defines the ellipse from which the pie section comes.startAngle - Angle in degrees measured clockwise from the x-axis to the first side of the pie section.sweepAngle - Angle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.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.
brush - Brush that determines the characteristics of the fill.x - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.y - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.width - Width of the bounding rectangle that defines the ellipse from which the pie section comes.height - Height of the bounding rectangle that defines the ellipse from which the pie section comes.startAngle - Angle in degrees measured clockwise from the x-axis to the first side of the pie section.sweepAngle - Angle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.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.
brush - Brush that determines the characteristics of the fill.points - Array of PointF structures that represent the vertices of the polygon to fill.fillMode - Member of the FillMode enumeration that determines the style of the fill.public final void fillPolygon(Brush brush, PointF[] points)
Fills the interior of a polygon defined by an array of points specified by PointF structures.
public final void fillPolygon(Brush brush, Point[] points)
Fills the interior of a polygon defined by an array of points specified by Point structures.
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.
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.
brush - Brush that determines the characteristics of the fill.x - The x-coordinate of the upper-left corner of the rectangle to fill.y - The y-coordinate of the upper-left corner of the rectangle to fill.width - Width of the rectangle to fill.height - Height of the rectangle to fill.public final void fillRectangle(Brush brush, RectangleF rect)
Fills the interior of a rectangle specified by a RectangleF structure.
brush - Brush that determines the characteristics of the fill.rect - RectangleF structure that represents the rectangle to fill.public final void fillRectangles(Brush brush, Rectangle[] rects)
Fills the interiors of a series of rectangles specified by Rectangle structures.
public final void fillRectangles(Brush brush, RectangleF[] rects)
Fills the interiors of a series of rectangles specified by RectangleF structures.
brush - Brush that determines the characteristics of the fill.rects - Array of RectangleF structures that represent the rectangles to fill.public final void fillRegion(Brush brush, Region region)
Fills the interior of a Region.
brush - Brush that determines the characteristics of the fill.region - Region that represents the area to fill.public final void flush()
Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
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.
intention - Member of the FlushIntention enumeration that specifies whether the method returns immediately or waits for any existing operations to finish.public final SizeF measureString(String text, Font font)
Measures the specified string when drawn with the specified Font.
text - String to measure.font - Font that defines the text format of the string.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.public final SizeF measureString(String text, Font font, SizeF layoutArea)
Measures the specified string when drawn with the specified Font.
text - String to measure.font - Font that defines the text format of the string.layoutArea - SizeF structure that specifies the maximum layout area for the text.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.public final SizeF measureString(String text, Font font, int width)
Measures the specified string when drawn with the specified Font.
text - String to measure.font - Font that defines the text format of the string.width - Maximum width of the string in pixels.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.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.
text - String to measure.font - Font defines the text format of the string.origin - PointF structure that represents the upper-left corner of the string.stringFormat - StringFormat that represents formatting information, such as line spacing, for the string.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.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.
text - String to measure.font - Font that defines the text format of the string.width - Maximum width of the string.format - StringFormat that represents formatting information,
such as line spacing, for the string.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.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.
text - String to measure.font - Font defines the text format of the string.layoutArea - SizeF structure that specifies the maximum layout area for the text.stringFormat - StringFormat that represents formatting information,
such as line spacing, for the string.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.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.
text - String to measure.font - Font defines the text format of the string.layoutArea - SizeF structure that specifies the maximum layout area for the text.stringFormat - StringFormat that represents formatting information,
such as line spacing, for the string.charactersFitted - Number of characters in the string.linesFilled - Number of text lines in the string.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.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.
text - String to measure.font - Font that defines the text format of the string.layoutRect - RectangleF structure that specifies the layout rectangle for the string.stringFormat - StringFormat that represents formatting information, such as line spacing, for the string.Region objects, each of which bounds a range of character positions within the specified string.public final void resetTransform()
Resets the world transformation matrix of this Graphics to the identity matrix.
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.
destSpace - Member of the CoordinateSpace enumeration that specifies the destination coordinate space.srcSpace - Member of the CoordinateSpace enumeration that specifies the source coordinate space.pts - Array of PointF structures that represent the points to transform.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.
destSpace - Member of the CoordinateSpace enumeration that specifies the destination coordinate space.srcSpace - Member of the CoordinateSpace enumeration that specifies the source coordinate space.pts - Array of Point structures that represent the points to transform.public final void translateClip(int dx,
int dy)
Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
dx - The x-coordinate of the translation.dy - The y-coordinate of the translation.public final void translateClip(float dx,
float dy)
Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
dx - The x-coordinate of the translation.dy - The y-coordinate of the translation.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.
dx - The x-coordinate of the translation.dy - The y-coordinate of the translation.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.
dx - The x-coordinate of the translation.dy - The y-coordinate of the translation.order - Member of the MatrixOrder enumeration that specifies whether the translation
is prepended or appended to the transformation matrix.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.
sx - Scale factor in the x direction.sy - Scale factor in the y direction.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.
sx - Scale factor in the x direction.sy - Scale factor in the y direction.order - Member of the MatrixOrder enumeration that specifies whether the scaling operation
is prepended or appended to the transformation matrix.public final void rotateTransform(float angle)
Applies the specified rotation to the transformation matrix of this Graphics.
angle - Angle of rotation in degrees.public final void rotateTransform(float angle,
int order)
Applies the specified rotation to the transformation matrix of this Graphics in the specified order.
angle - Angle of rotation in degrees.order - Member of the MatrixOrder enumeration that specifies whether the rotation is appended
or prepended to the matrix transformation.public final void multiplyTransform(Matrix matrix)
Multiplies the world transformation of this Graphics and specified the Matrix.
matrix - 4x4 Matrix that multiplies the world transformation.public final void multiplyTransform(Matrix matrix, int order)
Multiplies the world transformation of this Graphics and specified
the Matrix in the specified order.
matrix - 4x4 Matrix that multiplies the world transformation.order - Member of the MatrixOrder enumeration that determines
the order of the multiplication.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.
g - The Graphics that specifies the clip region to combine.combineMode - The member of the CombineMode enumeration that specifies the combining operation to use.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.
rect - The Rectangle structure to combine.combineMode - The Member of the CombineMode enumeration that specifies the combining operation to use.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.
rect - The Rectangle structure to combine.combineMode - The combine mode.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.
path - The GraphicsPath to combine..combineMode - The member of the CombineMode enumeration that specifies the combining operation to use..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.
region - Region to combine.combineMode - Member from the CombineMode enumeration that specifies
the combining operation to use.public final byte[] getHdc()
Gets the handle to the device context associated with this Graphics.
Graphics.public final Color getNearestColor(Color color)
Gets the nearest color to the specified Color structure.
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.
region - Region to intersect with the current region.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.
rect - Rectangle structure to intersect with the current clip region.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.
rect - RectangleF structure to intersect with the current clip region.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.
x - The x-coordinate of the point to test for visibility.y - The y-coordinate of the point to test for visibility.true if the point defined by the x and y parameters is contained within the visible clip region
of this Graphics; otherwise, false.public final boolean isVisible(Point point)
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.
x - The x-coordinate of the point to test for visibility.y - The y-coordinate of the point to test for visibility.true if the point defined by the x and y parameters is contained within the visible clip region
of this Graphics; otherwise, false.public final boolean isVisible(PointF point)
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.
x - The x-coordinate of the upper-left corner of the rectangle to test for visibility.y - The y-coordinate of the upper-left corner of the rectangle to test for visibility.width - Width of the rectangle to test for visibility.height - Height of the rectangle to test for visibility.trueif the rectangle defined by the x, y, width,
and height parameters is contained within the visible clip region of this Graphics; otherwise, false.public final boolean isVisible(Rectangle rect)
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.
x - The x-coordinate of the upper-left corner of the rectangle to test for visibility.y - The y-coordinate of the upper-left corner of the rectangle to test for visibility.width - Width of the rectangle to test for visibility.height - Height of the rectangle to test for visibility.trueif the rectangle defined by the x, y, width,
and height parameters is contained within the visible clip region of this Graphics; otherwise, false.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.
rect - RectangleF structure to test for visibility.true if the rectangle specified by the rect parameter is contained within the visible clip region
of this Graphics; otherwise, false.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.
hdc - Handle to a device context obtained by a previous call to
the M:Graphics.GetHdc method of this Graphics.public final void releaseHdc()
Releases a device context handle obtained by a previous call to
the M:Graphics.GetHdc method of this Graphics.
public final GraphicsState save()
Saves the current state of this Graphics and identifies the saved state with a GraphicsState.
GraphicsState that represents the saved state of this Graphics.public final void restore(GraphicsState gstate)
Restores the state of this Graphics to the state represented by a GraphicsState.
gstate - The gstate.public final void resetClip()
Resets the clip region of this Graphics to an infinite region.
public final GraphicsContainer beginContainer()
Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.
GraphicsContainer that represents the state of this Graphics at the time of the method call.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.
dstrect - Rectangle structure that, together with the srcrect parameter, specifies a scale transformation for the container.srcrect - Rectangle structure that, together with the dstrect parameter, specifies a scale transformation for the container.unit - Member of the GraphicsUnit enumeration that specifies the unit of measure for the container.GraphicsContainer that represents the state of this Graphics at the time of the method call.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.
dstrect - RectangleF structure that, together with the srcrect parameter, specifies a scale transformation for the container.srcrect - RectangleF structure that, together with the dstrect parameter, specifies a scale transformation for the container.unit - Member of the GraphicsUnit enumeration that specifies the unit of measure for the container.GraphicsContainer that represents the state of this Graphics at the time of the method call.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 Graphics.beginContainer() method.
container - GraphicsContainer that represents the container this method restores.public final void excludeClip(Region region)
region - Region that specifies the region to exclude from the clip region.public final void excludeClip(Rectangle rect)
rect - Rectangle that specifies the rectangle to exclude from the clip region.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.
metafile - Metafile to enumerate.destPoint - PointF structure that specifies the location of the upper-left corner of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destPoint - PointF structure that specifies the location of the upper-left corner of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoint - Point structure that specifies the location of the upper-left corner of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.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.
metafile - Metafile to enumerate.destPoint - Point structure that specifies the location of the upper-left corner of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destRect - Rectangle structure that specifies the location and size of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.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.
metafile - Metafile to enumerate.destPoints - Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.unit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destPoints - Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.unit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destPoints - Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destRect - Rectangle structure that specifies the location and size of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.unit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destRect - Rectangle structure that specifies the location and size of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destRect - Rectangle structure that specifies the location and size of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three PointF structures that define a parallelogram that determines the size and location of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.unit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoint - Point structure that specifies the location of the upper-left corner of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.unit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destPoint - Point structure that specifies the location of the upper-left corner of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoint - Point structure that specifies the location of the upper-left corner of the drawn metafile.srcRect - Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoint - PointF structure that specifies the location of the upper-left corner of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.unit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destPoint - PointF structure that specifies the location of the upper-left corner of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoint - PointF structure that specifies the location of the upper-left corner of the drawn metafile.srcRect - System.Drawing.RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destPoints - Array of three Point structures that define a parallelogram that determines the size and location of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.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.
metafile - Metafile to enumerate.destRect - RectangleF structure that specifies the location and size of the drawn metafile.srcRect - RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.srcUnit - 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 - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.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.
metafile - Metafile to enumerate.destRect - Rectangle structure that specifies the location and size of the drawn metafile.callback - Graphics.EnumerateMetafileProcByte delegate that specifies the method to which the metafile records are sent.imageAttr - ImageAttributes that specifies image attribute information for the drawn image.public final void addMetafileComment(byte[] data)
Adds a comment to the current Metafile.
data - Array of bytes that contains the comment.public com.aspose.imaging.Image getImage()
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.