| Package | Description |
|---|---|
| com.aspose.drawing |
Aspose.Drawing is a graphics API that provides the capability of 2D drawings identical to GDI+ in your .NET applications.
|
| com.aspose.drawing.drawing2d | |
| com.aspose.drawing.imaging | |
| com.aspose.drawing.internal |
| Modifier and Type | Method and Description |
|---|---|
RectangleF |
RectangleF.Clone() |
static RectangleF |
RectangleF.fromLTRB(float left,
float top,
float right,
float bottom)
Creates a RectangleF structure with upper-left corner and lower-right corner at the specified locations.
|
static RectangleF |
RectangleF.fromPoints(PointF point1,
PointF point2)
Creates a new rectangle from two points.
|
RectangleF |
Region.getBounds(Graphics g)
Gets a
RectangleF structure that represents a rectangle that bounds this Region
on the drawing surface of a Graphics object. |
RectangleF |
Image.getBounds(int[] pageUnit)
Gets the bounds of the image in the specified unit.
|
RectangleF |
Graphics.getClipBounds()
Gets a
RectangleF structure that bounds the clipping region of this Graphics. |
static RectangleF |
RectangleF.getEmpty() |
RectangleF[] |
Region.getRegionScans(Matrix matrix)
Returns an array of
RectangleF structures that approximate this Region
after the specified matrix transformation is applied. |
RectangleF |
Graphics.getVisibleClipBounds()
Gets the bounding rectangle of the visible clipping region of this
Graphics. |
static RectangleF |
RectangleF.inflate(RectangleF rect,
float x,
float y)
Creates and returns an inflated copy of the specified
RectangleF structure. |
static RectangleF |
RectangleF.intersect(RectangleF a,
RectangleF b)
Returns a
RectangleF structure that represents the intersection of two rectangles. |
static RectangleF |
RectangleF.to_RectangleF(Rectangle r)
Converts the specified Rectangle structure to a RectangleF structure.
|
static RectangleF |
RectangleF.union(RectangleF a,
RectangleF b)
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
|
| Modifier and Type | Method and Description |
|---|---|
GraphicsContainer |
Graphics.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. |
static Rectangle |
Rectangle.ceiling(RectangleF value)
Converts the specified
RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values. |
void |
RectangleF.CloneTo(RectangleF that) |
void |
Region.complement(RectangleF rect)
Updates this
Region to contain the portion of the specified RectangleF structure
that does not intersect with this Region. |
boolean |
RectangleF.contains(RectangleF rect)
Determines if the rectangular region represented by
rect is entirely contained within this RectangleF structure. |
Bitmap |
Bitmap.deepClone(RectangleF rect,
int format)
Creates a copy of the section of this
Bitmap defined with a specified PixelFormat enumeration. |
void |
Graphics.drawArc(Pen pen,
RectangleF rect,
float startAngle,
float sweepAngle)
Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
|
void |
Graphics.drawEllipse(Pen pen,
RectangleF rect)
Draws an ellipse defined by a bounding RectangleF.
|
void |
Graphics.drawImage(Image image,
float x,
float y,
RectangleF srcRect,
int srcUnit)
Draws a portion of an image at a specified location.
|
void |
Graphics.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 |
Graphics.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 |
Graphics.drawImage(Image image,
RectangleF rect)
Draws the specified Image at the specified location and with the specified size.
|
void |
Graphics.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 |
Graphics.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 |
Graphics.drawRectangles(Pen pen,
RectangleF[] rects)
Draws a series of rectangles specified by
RectangleF structures. |
void |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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. |
boolean |
RectangleF.equals(RectangleF other)
Tests whether other
RectangleF structure has the same location and size of this RectangleF structure. |
void |
Region.exclude(RectangleF rect)
Updates this
Region to contain only the portion of its interior that does not intersect with the
specified RectangleF structure. |
void |
Graphics.fillEllipse(Brush brush,
RectangleF rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
|
void |
Graphics.fillRectangle(Brush brush,
RectangleF rect)
Fills the interior of a rectangle specified by a RectangleF structure.
|
void |
Graphics.fillRectangles(Brush brush,
RectangleF[] rects)
Fills the interiors of a series of rectangles specified by
RectangleF structures. |
static RectangleF |
RectangleF.inflate(RectangleF rect,
float x,
float y)
Creates and returns an inflated copy of the specified
RectangleF structure. |
void |
Region.intersect(RectangleF rect)
Updates this
Region to the intersection of itself with the specified
RectangleF structure. |
void |
RectangleF.intersect(RectangleF rect)
Replaces this
RectangleF structure with the intersection of itself and the specified
RectangleF structure. |
static RectangleF |
RectangleF.intersect(RectangleF a,
RectangleF b)
Returns a
RectangleF structure that represents the intersection of two rectangles. |
void |
Graphics.intersectClip(RectangleF rect)
Updates the clip region of this
Graphics to the intersection of the current clip region and the specified RectangleF structure. |
boolean |
RectangleF.intersectsWith(RectangleF rect)
Determines if this rectangle intersects with
rect. |
static boolean |
RectangleF.isEquals(RectangleF obj1,
RectangleF obj2) |
boolean |
Region.isVisible(RectangleF rect)
Tests whether any portion of the specified
RectangleF structure is contained within
this Region. |
boolean |
Graphics.isVisible(RectangleF rect)
Indicates whether the rectangle specified by a
RectangleF structure is contained within the visible clip region of this Graphics. |
boolean |
Region.isVisible(RectangleF rect,
Graphics g)
Tests whether any portion of the specified
RectangleF structure is contained within
this Region when drawn using the specified Graphics. |
Region[] |
Graphics.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. |
static boolean |
RectangleF.op_Equality(RectangleF left,
RectangleF right)
Tests whether two
RectangleF structures have equal location and size. |
static boolean |
RectangleF.op_Inequality(RectangleF left,
RectangleF right)
Tests whether two
RectangleF structures differ in location or size. |
static Rectangle |
Rectangle.round(RectangleF value)
Converts the specified
RectangleF to a Rectangle by rounding
the RectangleF values to the nearest integer values. |
void |
Graphics.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 |
Graphics.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. |
static Rectangle |
Rectangle.truncate(RectangleF value)
|
void |
Region.union(RectangleF rect)
Updates this
Region to the union of itself and the specified RectangleF structure. |
static RectangleF |
RectangleF.union(RectangleF a,
RectangleF b)
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
|
void |
Region.xor(RectangleF rect)
Updates this
Region to the union minus the intersection of itself with
the specified RectangleF structure. |
| Constructor and Description |
|---|
Region(RectangleF rect)
Initializes a new instance of the
Region class from the specified RectangleF structure. |
TextureBrush(Image image,
int wrapMode,
RectangleF dstRect)
Initializes a new instance of the
TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image,
RectangleF dstRect)
Initializes a new instance of the
TextureBrush class that uses the specified image, and bounding rectangle. |
TextureBrush(Image image,
RectangleF dstRect,
ImageAttributes imageAttr)
Initializes a new instance of the
TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
| Modifier and Type | Method and Description |
|---|---|
RectangleF |
GraphicsState.getBounds()
Gets the bounds.
|
RectangleF |
GraphicsPath.getBounds()
Returns a rectangle that bounds this
GraphicsPath. |
RectangleF |
GraphicsPath.getBounds(Matrix matrix)
Returns a rectangle that bounds this
GraphicsPath when this path is
transformed by the specified Matrix. |
RectangleF |
GraphicsPath.getBounds(Matrix matrix,
Pen pen)
Returns a rectangle that bounds this
GraphicsPath when the current path is
transformed by the specified Matrix and drawn with the specified Pen. |
RectangleF |
PathGradientBrush.getRectangle()
Gets a bounding rectangle for this
PathGradientBrush. |
RectangleF |
LinearGradientBrush.getRectangle()
Gets a rectangular region that defines the starting and ending points of the gradient.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GraphicsPath.addArc(RectangleF rect,
float startAngle,
float sweepAngle)
Appends an elliptical arc to the current figure.
|
void |
GraphicsPath.addEllipse(RectangleF rect)
Adds an ellipse to the current path.
|
void |
GraphicsPath.addRectangle(RectangleF rect)
Adds a rectangle to this path.
|
void |
GraphicsPath.addRectangles(RectangleF[] rects)
Adds a series of rectangles to this path.
|
void |
GraphicsPath.addString(String s,
FontFamily family,
int style,
float emSize,
RectangleF layoutRect,
StringFormat format)
Adds a text string to this path.
|
void |
GraphicsState.setBounds(RectangleF value)
Sets the bounds.
|
void |
GraphicsPath.warp(PointF[] destPoints,
RectangleF srcRect)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
GraphicsPath.warp(PointF[] destPoints,
RectangleF srcRect,
Matrix matrix)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
GraphicsPath.warp(PointF[] destPoints,
RectangleF srcRect,
Matrix matrix,
int warpMode)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
GraphicsPath.warp(PointF[] destPoints,
RectangleF srcRect,
Matrix matrix,
int warpMode,
float flatness)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
| Constructor and Description |
|---|
LinearGradientBrush(RectangleF rect,
Color color1,
Color color2,
float angle)
Initializes a new instance of the
LinearGradientBrush class based on a rectangle,
starting and ending colors, and an orientation angle. |
LinearGradientBrush(RectangleF rect,
Color color1,
Color color2,
float angle,
boolean isAngleScaleable)
Initializes a new instance of the
LinearGradientBrush class based on a rectangle,
starting and ending colors, and an orientation angle. |
LinearGradientBrush(RectangleF rect,
Color color1,
Color color2,
int linearGradientMode)
Initializes a new instance of the
LinearGradientBrush class based on a rectangle,
starting and ending colors, and an orientation mode. |
Matrix(RectangleF rect,
PointF[] plgpts)
Initializes a new instance of the
Matrix class to the geometric transform defined by the specified rectangle and array of points. |
| Constructor and Description |
|---|
Metafile(InputStream stream,
byte[] referenceHdc,
RectangleF frameRect,
int frameUnit,
int type)
|
| Constructor and Description |
|---|
RegionBase(RectangleF rect)
Initializes a new instance of the
RegionBase class from the specified RectangleF structure. |
RegionEx(RectangleF rect)
Initializes a new instance of the
RegionEx class from the specified RectangleF structure. |
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.