| 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 | |
| com.aspose.drawing.printing |
| Modifier and Type | Method and Description |
|---|---|
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. |
Rectangle |
Rectangle.Clone() |
static Rectangle |
Rectangle.fromLTRB(int left,
int top,
int right,
int bottom)
Creates a
Rectangle structure with the specified edge locations. |
static Rectangle |
Rectangle.fromPoints(Point point1,
Point point2)
Creates a new rectangle from two points.
|
static Rectangle |
Rectangle.getEmpty()
Gets a new instance of the
Rectangle structure that has Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height values set to zero. |
static Rectangle |
Rectangle.inflate(Rectangle rect,
int x,
int y) |
static Rectangle |
Rectangle.intersect(Rectangle a,
Rectangle b)
|
static Rectangle |
Rectangle.round(RectangleF value)
Converts the specified
RectangleF to a Rectangle by rounding
the RectangleF values to the nearest integer values. |
static Rectangle |
Rectangle.truncate(RectangleF value)
|
static Rectangle |
Rectangle.union(Rectangle a,
Rectangle b)
|
| Modifier and Type | Method and Description |
|---|---|
GraphicsContainer |
Graphics.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 |
Rectangle.CloneTo(Rectangle that) |
void |
Region.complement(Rectangle rect)
|
boolean |
Rectangle.contains(Rectangle rect) |
Bitmap |
Bitmap.deepClone(Rectangle rect,
int format)
Creates a copy of the section of this
Bitmap defined by Rectangle structure
and with a specified PixelFormat(Image.getPixelFormat()) enumeration. |
void |
Graphics.drawIcon(Icon icon,
Rectangle targetRect)
|
void |
Graphics.drawIconUnstretched(Icon icon,
Rectangle targetRect)
Draws the image represented by the specified
Icon without scaling the image. |
void |
Graphics.drawImage(Image image,
int x,
int y,
Rectangle srcRect,
int srcUnit)
Draws a portion of an image at a specified location.
|
void |
Graphics.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 |
Graphics.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 |
Graphics.drawImage(Image image,
Rectangle rect)
Draws the specified Image at the specified location and with the specified size.
|
void |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.drawImageUnscaled(Image image,
Rectangle rect)
Draws a specified image using its original physical size at a specified location.
|
void |
Graphics.drawImageUnscaledAndClipped(Image image,
Rectangle rect)
Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
|
void |
Graphics.drawRectangle(Pen pen,
Rectangle rect)
Draws a rectangle specified by a Rectangle structure.
|
void |
Graphics.drawRectangles(Pen pen,
Rectangle[] rects)
Draws a series of rectangles specified by
Rectangle structures. |
void |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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 |
Graphics.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. |
boolean |
Rectangle.equals(Rectangle other)
|
void |
Region.exclude(Rectangle rect)
|
void |
Graphics.excludeClip(Rectangle rect)
|
void |
Graphics.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 |
Graphics.fillRectangles(Brush brush,
Rectangle[] rects)
Fills the interiors of a series of rectangles specified by
Rectangle structures. |
static Rectangle |
Rectangle.inflate(Rectangle rect,
int x,
int y) |
void |
Region.intersect(Rectangle rect)
|
void |
Rectangle.intersect(Rectangle rect)
|
static Rectangle |
Rectangle.intersect(Rectangle a,
Rectangle b)
|
void |
Graphics.intersectClip(Rectangle rect)
|
boolean |
Rectangle.intersectsWith(Rectangle rect)
Determines if this rectangle intersects with
rect. |
static boolean |
Rectangle.isEquals(Rectangle obj1,
Rectangle obj2) |
boolean |
Region.isVisible(Rectangle rect)
|
boolean |
Graphics.isVisible(Rectangle rect)
|
boolean |
Region.isVisible(Rectangle rect,
Graphics g)
|
BitmapData |
Bitmap.lockBits(Rectangle rect,
int flags,
int format)
Locks a
Bitmap into system memory. |
static boolean |
Rectangle.op_Equality(Rectangle left,
Rectangle right)
Tests whether two
Rectangle structures have equal location and size. |
static boolean |
Rectangle.op_Inequality(Rectangle left,
Rectangle right)
Tests whether two
Rectangle structures differ in location or size. |
void |
Graphics.setClip(Rectangle rect)
|
void |
Graphics.setClip(Rectangle rect,
int combineMode)
|
static RectangleF |
RectangleF.to_RectangleF(Rectangle r)
Converts the specified Rectangle structure to a RectangleF structure.
|
void |
Region.union(Rectangle rect)
|
static Rectangle |
Rectangle.union(Rectangle a,
Rectangle b)
|
void |
Region.xor(Rectangle rect)
|
| Constructor and Description |
|---|
Region(Rectangle rect)
|
| Modifier and Type | Method and Description |
|---|---|
void |
GraphicsPath.addPie(Rectangle rect,
float startAngle,
float sweepAngle)
Adds the outline of a pie shape to this path.
|
void |
GraphicsPath.addRectangle(Rectangle rect)
Adds a rectangle to this path.
|
void |
GraphicsPath.addRectangles(Rectangle[] rects)
Adds a series of rectangles to this path.
|
void |
GraphicsPath.addString(String s,
FontFamily family,
int style,
float emSize,
Rectangle layoutRect,
StringFormat format)
Adds a text string to this path.
|
| Constructor and Description |
|---|
LinearGradientBrush(Rectangle 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(Rectangle 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(Rectangle rect,
Color color1,
Color color2,
int linearGradientMode)
Initializes a new instance of the
LinearGradientBrush class based on a rectangle,
starting and ending colors, and orientation. |
Matrix(Rectangle rect,
Point[] plgpts)
Initializes a new instance of the
Matrix class to the geometric transform defined by the specified rectangle and array of points. |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
MetafileHeader.getBounds()
|
| Modifier and Type | Method and Description |
|---|---|
static Rectangle |
RegionBase.getInfinite()
The infinite rectangle getter.
|
| Constructor and Description |
|---|
RegionBase(Rectangle rect)
Initializes a new instance of the
RegionBase class from the specified Rectangle structure. |
RegionEx(Rectangle rect)
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PageSettings.getBounds()
Gets the size of the page, taking into account the page orientation specified by the
PageSettings property
. |
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.