public class CircleMask extends ImageMask
Describes a circle mask.
| Constructor and Description |
|---|
CircleMask(int x,
int y,
int radius)
Initializes a new instance of the
CircleMask class with the specified center point and radius. |
CircleMask(Point center,
int radius)
Initializes a new instance of the
CircleMask class with the specified center point and radius. |
| Modifier and Type | Method and Description |
|---|---|
ImageMask |
crop(Rectangle rectangle)
Crops mask with the specified rectangle.
|
Object |
deepClone()
Creates a new object that is a copy of the current instance.
|
boolean |
get_Item(int x,
int y)
Gets the opacity of the specified pixel.
|
Rectangle |
getSelectionBounds()
Gets the bounds, in pixels, of this mask.
|
ImageMask |
inflate(int size)
Inflates this mask by the specified amount.
|
apply, applyTo, crop, crop, exclusiveDisjunction, exclusiveDisjunction, exclusiveDisjunction, exclusiveDisjunction, exclusiveDisjunction, getBounds, getByteOpacity, getFeathered, getFeathered, getHeight, getSource, getWidth, intersect, intersect, intersect, intersect, intersect, invert, isOpaque, isTransparent, op_Addition, op_ExclusiveOr, op_LogicalNot, op_Multiply, op_Subtraction, subtract, subtract, subtract, subtract, subtract, to_ImageGrayscaleMask, union, union, union, union, unionpublic CircleMask(int x,
int y,
int radius)
Initializes a new instance of the CircleMask class with the specified center point and radius.
x - The x-coordinate of the center point of the selected area.y - The y-coordinate of the center point of the selected area.radius - Radius of the selected area.public CircleMask(Point center, int radius)
Initializes a new instance of the CircleMask class with the specified center point and radius.
center - The center point of the selected area.radius - Radius of the selected area.public Rectangle getSelectionBounds()
Gets the bounds, in pixels, of this mask.
getSelectionBounds in interface IImageMaskgetSelectionBounds in class ImageMaskpublic boolean get_Item(int x,
int y)
Gets the opacity of the specified pixel.
public ImageMask inflate(int size)
Inflates this mask by the specified amount.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.