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.fromLeftTopRightBottom(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 specified. |
Rectangle |
Image.getBounds()
Gets the image bounds.
|
Rectangle |
IObjectWithBounds.getBounds()
Gets the object bounds.
|
static Rectangle |
Rectangle.getEmpty()
Gets a new instance of the
Rectangle structure that has Aspose.PSD.Rectangle.X (Rectangle.getX() /Rectangle.setX(int) ), Aspose.PSD.Rectangle.Y (Rectangle.getY() /Rectangle.setY(int) ), Aspose.PSD.Rectangle.Width (Rectangle.getWidth() /Rectangle.setWidth(int) ) and Aspose.PSD.Rectangle.Height (Rectangle.getHeight() /Rectangle.setHeight(int) ) values set to zero. |
static Rectangle |
Image.getFittingRectangle(Rectangle rectangle,
int[] pixels,
int width,
int height)
Gets rectangle which fits the current image.
|
static Rectangle |
Image.getFittingRectangle(Rectangle rectangle,
int width,
int height)
Gets rectangle which fits the current image.
|
static Rectangle |
Rectangle.inflate(Rectangle rect,
int x,
int y)
Creates and returns an inflated copy of the specified
Rectangle structure. |
static Rectangle |
Rectangle.intersect(Rectangle a,
Rectangle b)
Returns a third
Rectangle structure that represents the intersection of two other Rectangle structures. |
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)
Converts the specified
RectangleF to a Rectangle by truncating the RectangleF values. |
static Rectangle |
Rectangle.union(Rectangle a,
Rectangle b)
Gets a
Rectangle structure that contains the union of two Rectangle structures. |
Modifier and Type | Method and Description |
---|---|
void |
Rectangle.CloneTo(Rectangle that) |
void |
Region.complement(Rectangle rect)
Updates this
Region to contain the portion of the specified Rectangle structure that does not intersect with this Region . |
boolean |
Rectangle.contains(Rectangle rect)
Determines if the rectangular region represented by
rect is entirely contained within this Rectangle structure. |
void |
RasterCachedImage.crop(Rectangle rectangle)
Cropping the image.
|
void |
RasterImage.crop(Rectangle rectangle)
Crops the specified rectangle.
|
void |
Graphics.drawArc(Pen pen,
Rectangle rect,
float startAngle,
float sweepAngle)
Draws an arc representing a portion of an ellipse specified by a
Rectangle structure. |
void |
Graphics.drawEllipse(Pen pen,
Rectangle rect)
Draws an ellipse specified by a bounding
Rectangle structure. |
void |
Graphics.drawImage(Image image,
Point[] destPoints,
Rectangle srcRect)
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)
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 imageAttributes)
Draws the specified portion of the specified
image at the specified location and with the specified size. |
void |
Graphics.drawImage(Image sourceImage,
Rectangle rect)
Draws the specified
Image (Graphics.getImage() ) at the specified location and with the specified size. |
void |
Graphics.drawImage(Image sourceImage,
Rectangle rectDestination,
int graphicsUnit)
Draws the specified
Image (Graphics.getImage() ) at the specified location and with the specified size. |
void |
Graphics.drawImage(Image sourceImage,
Rectangle rectDestination,
int graphicsUnit,
ImageAttributes imageAttributes)
Draws the specified
Image (Graphics.getImage() ) at the specified location and with the specified size. |
void |
Graphics.drawImage(Image sourceImage,
Rectangle rectSource,
Rectangle rectDestination,
int graphicsUnit)
Draws the specified
Image (Graphics.getImage() ) at the specified location and with the specified size. |
void |
Graphics.drawImage(Image sourceImage,
Rectangle rectSource,
Rectangle rectDestination,
int graphicsUnit,
ImageAttributes imageAttributes)
Draws the specified
Image (Graphics.getImage() ) at the specified location and with the specified size. |
void |
Graphics.drawImageUnscaled(Image sourceImage,
Rectangle rect)
Draws a specified image using its original physical size at a specified location.
|
void |
Graphics.drawImageUnscaledAndClipped(Image sourceImage,
Rectangle rect)
Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
|
void |
Graphics.drawPie(Pen pen,
Rectangle rect,
float startAngle,
float sweepAngle)
Draws a pie shape defined by an ellipse specified by a
Rectangle structure and two radial lines. |
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 |
Region.exclude(Rectangle rect)
Updates this
Region to contain only the portion of its interior that does not intersect with the specified Rectangle structure. |
void |
IImageExporter.export(Image image,
OutputStream stream,
ImageOptionsBase optionsBase,
Rectangle boundsRectangle)
Exports the specified image data into specified data format.
|
void |
Graphics.fillEllipse(Brush brush,
Rectangle rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a
Rectangle structure. |
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
RectangleF structure and two radial lines. |
void |
Graphics.fillRectangle(Brush brush,
Rectangle rect)
Fills the interior of a rectangle specified by a
Rectangle structure. |
void |
Graphics.fillRectangles(Brush brush,
Rectangle[] rects)
Fills the interiors of a series of rectangles specified by
Rectangle structures. |
void |
RasterImage.filter(Rectangle rectangle,
FilterOptionsBase options)
Filters the specified rectangle.
|
static IColorPalette |
ColorPaletteHelper.getCloseImagePalette(RasterImage image,
Rectangle destBounds,
int entriesCount)
Gets color palette from raster image (palletizes image) in case the image does not have one.
|
int[] |
RasterImage.getDefaultArgb32Pixels(Rectangle rectangle)
Gets the default 32-bit ARGB pixels array.
|
void |
RasterImage.getDefaultPixels(Rectangle rectangle,
IPartialArgb32PixelLoader partialPixelLoader)
Gets the default pixels array using partial pixel loader.
|
void |
RasterImage.getDefaultRawData(Rectangle rectangle,
IPartialRawDataLoader partialRawDataLoader,
RawDataSettings rawDataSettings)
Gets the default raw data array using partial pixel loader.
|
byte[] |
RasterImage.getDefaultRawData(Rectangle rectangle,
RawDataSettings rawDataSettings)
Gets the default raw data array.
|
static Rectangle |
Image.getFittingRectangle(Rectangle rectangle,
int[] pixels,
int width,
int height)
Gets rectangle which fits the current image.
|
static Rectangle |
Image.getFittingRectangle(Rectangle rectangle,
int width,
int height)
Gets rectangle which fits the current image.
|
static Rectangle |
Rectangle.inflate(Rectangle rect,
int x,
int y)
Creates and returns an inflated copy of the specified
Rectangle structure. |
void |
Rectangle.intersect(Rectangle rect)
Replaces this
Rectangle with the intersection of itself and the specified Rectangle . |
void |
Region.intersect(Rectangle rect)
Updates this
Region to the intersection of itself with the specified Rectangle structure. |
static Rectangle |
Rectangle.intersect(Rectangle a,
Rectangle b)
Returns a third
Rectangle structure that represents the intersection of two other Rectangle structures. |
boolean |
Rectangle.intersectsWith(Rectangle rect)
Determines if this rectangle intersects with
rect . |
boolean |
Region.isVisible(Rectangle rect)
Tests whether any portion of the specified
Rectangle structure is contained within this Region . |
boolean |
Region.isVisible(Rectangle rect,
Graphics g)
Tests whether any portion of the specified
Rectangle structure is contained within this Region when drawn using the specified Graphics . |
int[] |
RasterImage.loadArgb32Pixels(Rectangle rectangle)
Loads 32-bit ARGB pixels.
|
long[] |
RasterImage.loadArgb64Pixels(Rectangle rectangle)
Loads 64-bit ARGB pixels.
|
int[] |
RasterImage.loadCmyk32Pixels(Rectangle rectangle)
Loads pixels in CMYK format.
|
CmykColor[] |
RasterImage.loadCmykPixels(Rectangle rectangle)
Deprecated.
|
void |
IRasterImageArgb32PixelLoader.loadPartialArgb32Pixels(Rectangle rectangle,
IPartialArgb32PixelLoader partialPixelLoader)
Loads 32-bit ARGB pixels partially (by blocks).
|
void |
RasterImage.loadPartialArgb32Pixels(Rectangle rectangle,
IPartialArgb32PixelLoader partialPixelLoader)
Loads 32-bit ARGB pixels partially by packs.
|
void |
IRasterImagePixelLoader.loadPartialPixels(Rectangle rectangle,
IPartialPixelLoader partialPixelLoader)
Loads pixels partially (by blocks).
|
void |
RasterImage.loadPartialPixels(Rectangle desiredRectangle,
IPartialPixelLoader pixelLoader)
Loads pixels partially by packs.
|
Color[] |
RasterImage.loadPixels(Rectangle rectangle)
Loads pixels.
|
void |
IRasterImageRawDataLoader.loadRawData(Rectangle rectangle,
RawDataSettings rawDataSettings,
IPartialRawDataLoader rawDataLoader)
Loads raw data.
|
void |
RasterImage.loadRawData(Rectangle rectangle,
RawDataSettings rawDataSettings,
IPartialRawDataLoader rawDataLoader)
Loads raw data.
|
void |
RasterImage.loadRawData(Rectangle rectangle,
Rectangle destImageBounds,
RawDataSettings rawDataSettings,
IPartialRawDataLoader rawDataLoader)
Loads raw data.
|
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 |
IPartialRawDataLoader.process(Rectangle rectangle,
byte[] data,
Point start,
Point end)
Processes the loaded data.
|
void |
IPartialRawDataLoader.process(Rectangle rectangle,
byte[] data,
Point start,
Point end,
LoadOptions loadOptions)
Processes the loaded data.
|
void |
IPartialPixelLoader.process(Rectangle pixelsRectangle,
Color[] pixels,
Point start,
Point end)
Processes the loaded pixels.
|
void |
IPartialArgb32PixelLoader.process(Rectangle pixelsRectangle,
int[] pixels,
Point start,
Point end)
Processes the loaded pixels.
|
void |
IPartialArgb64PixelLoader.process64(Rectangle pixelsRectangle,
long[] pixels,
Point start,
Point end)
Processes the loaded pixels.
|
void |
Image.save(OutputStream dstStream,
ImageOptionsBase optionsBase,
Rectangle boundsRectangle)
Saves the image's data to the specified stream in the specified file format according to save options.
|
void |
Image.save(String filePath,
ImageOptionsBase options,
Rectangle boundsRectangle)
Saves the object's data to the specified file location in the specified file format according to save options.
|
void |
RasterImage.saveArgb32Pixels(Rectangle rectangle,
int[] pixels)
Saves the 32-bit ARGB pixels.
|
void |
RasterImage.saveCmyk32Pixels(Rectangle rectangle,
int[] pixels)
Saves the pixels.
|
void |
RasterImage.saveCmykPixels(Rectangle rectangle,
CmykColor[] pixels)
Deprecated.
|
void |
RasterImage.savePixels(Rectangle rectangle,
Color[] pixels)
Saves the pixels.
|
void |
RasterImage.saveRawData(byte[] data,
int dataOffset,
Rectangle rectangle,
RawDataSettings rawDataSettings)
Saves the raw data.
|
static RectangleF |
RectangleF.to_RectangleF(Rectangle rect)
Converts the specified
Rectangle structure to a RectangleF structure. |
void |
Region.union(Rectangle rect)
Updates this
Region to the union of itself and the specified Rectangle structure. |
static Rectangle |
Rectangle.union(Rectangle a,
Rectangle b)
Gets a
Rectangle structure that contains the union of two Rectangle structures. |
void |
Region.xor(Rectangle rect)
Updates this
Region to the union minus the intersection of itself with the specified Rectangle structure. |
Constructor and Description |
---|
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. |
Region(Rectangle rect)
Initializes a new
Region from the specified Rectangle structure. |
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 isAngleScalable)
Initializes a new instance of the
LinearGradientBrush class based on a rectangle, starting and ending colors, and an orientation angle. |
LinearMulticolorGradientBrush(Rectangle rect,
float angle)
Initializes a new instance of the
LinearMulticolorGradientBrush class based on a rectangle and an orientation angle. |
LinearMulticolorGradientBrush(Rectangle rect,
float angle,
boolean isAngleScalable)
Initializes a new instance of the
LinearMulticolorGradientBrush class based on a rectangle and an orientation angle. |
TextureBrush(Image image,
int wrapMode,
Rectangle destinationRectangle)
Initializes a new instance of the
TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image,
Rectangle destinationRectangle)
Initializes a new instance of the
TextureBrush class that uses the specified image and bounding rectangle. |
TextureBrush(Image image,
Rectangle destinationRectangle,
ImageAttributes imageAttributes)
Initializes a new instance of the
TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
RectangleExtensions.toGdiRectangle(Rectangle rectangle)
Converts the
Rectangle to the Rectangle . |
Modifier and Type | Method and Description |
---|---|
Rectangle |
AiHeader.getBoundingBox()
Gets or sets the bounding box.
|
Rectangle |
AiRasterImageSection.getImageRectangle()
Gets the image rectangle.
|
Modifier and Type | Method and Description |
---|---|
void |
AiHeader.setBoundingBox(Rectangle value)
Gets or sets the bounding box.
|
Modifier and Type | Method and Description |
---|---|
TextLayer |
PsdImage.addTextLayer(String text,
Rectangle rect)
Adds a new Text layer.
|
void |
PsdImage.crop(Rectangle rectangle)
Cropping the image.
|
void |
PsdImage.filter(Rectangle rectangle,
FilterOptionsBase options)
Filters the specified rectangle.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
LayerMaskDataFull.getUserMaskRectangle()
Gets or sets the user mask (enclosing) rectangle.
|
Modifier and Type | Method and Description |
---|---|
void |
Layer.save(OutputStream dstStream,
ImageOptionsBase optionsBase,
Rectangle boundsRectangle)
Saves the image's data to the specified stream in the specified file format according to save options.
|
void |
Layer.save(String filePath,
ImageOptionsBase options,
Rectangle boundsRectangle)
Saves the object's data to the specified file location in the specified file format according to save options.
|
void |
LayerMaskDataFull.setUserMaskRectangle(Rectangle value)
Gets or sets the user mask (enclosing) rectangle.
|
Constructor and Description |
---|
Layer(Rectangle bounds,
byte[] redBytes,
byte[] greenBytes,
byte[] blueBytes,
String name)
Initializes a new instance of the
Layer class from byte arrays. |
Modifier and Type | Method and Description |
---|---|
void |
PattResource.setPattern(int[] pixels,
Rectangle bounds)
Sets the pattern.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
MultiPageOptions.getExportArea()
Gets or sets the export area.
|
Modifier and Type | Method and Description |
---|---|
void |
MultiPageOptions.setExportArea(Rectangle value)
Gets or sets the export area.
|
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.