Class CircleMask

Class CircleMask

Namespace: Aspose.Imaging.MagicWand.ImageMasks
Assembly: Aspose.Imaging.dll (25.2.0)

Describes a circle mask.

public class CircleMask : ImageMask, IImageMask, ICloneable

Inheritance

objectImageMaskCircleMask

Implements

IImageMask, ICloneable

Inherited Members

ImageMask.Inflate(int), ImageMask.Crop(Size), ImageMask.Crop(int, int), ImageMask.Crop(Rectangle), ImageMask.IsOpaque(int, int), ImageMask.IsTransparent(int, int), ImageMask.GetByteOpacity(int, int), ImageMask.Clone(), ImageMask.GetFeathered(FeatheringSettings), ImageMask.Apply(), ImageMask.ApplyTo(RasterImage), ImageMask.Invert(), ImageMask.Union(ImageMask), ImageMask.Union(MagicWandSettings), ImageMask.Union(RasterImage, MagicWandSettings), ImageMask.Subtract(ImageMask), ImageMask.Subtract(MagicWandSettings), ImageMask.Subtract(RasterImage, MagicWandSettings), ImageMask.Intersect(ImageMask), ImageMask.Intersect(MagicWandSettings), ImageMask.Intersect(RasterImage, MagicWandSettings), ImageMask.ExclusiveDisjunction(ImageMask), ImageMask.ExclusiveDisjunction(MagicWandSettings), ImageMask.ExclusiveDisjunction(RasterImage, MagicWandSettings), ImageMask.Source, ImageMask.Width, ImageMask.Height, ImageMask.Bounds, ImageMask.SelectionBounds, ImageMask.this[int, int], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

CircleMask(int, int, int)

Initializes a new instance of the Aspose.Imaging.MagicWand.ImageMasks.CircleMask class with the specified center point and radius.

public CircleMask(int x, int y, int radius)

Parameters

x int

The x-coordinate of the center point of the selected area.

y int

The y-coordinate of the center point of the selected area.

radius int

Radius of the selected area.

CircleMask(Point, int)

Initializes a new instance of the Aspose.Imaging.MagicWand.ImageMasks.CircleMask class with the specified center point and radius.

public CircleMask(Point center, int radius)

Parameters

center Point

The center point of the selected area.

radius int

Radius of the selected area.

Properties

SelectionBounds

Gets the bounds, in pixels, of this mask.

public override Rectangle SelectionBounds { get; }

Property Value

Rectangle

this[int, int]

Gets the opacity of the specified pixel.

public override bool this[int x, int y] { get; }

Property Value

bool

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override object Clone()

Returns

object

A new object that is a copy of this instance.

Crop(Rectangle)

Crops mask with the specified rectangle.

public override ImageMask Crop(Rectangle rectangle)

Parameters

rectangle Rectangle

The specified rectangle.

Returns

ImageMask

A cropped CircleMask or ImageBitMask as ImageMask. As ImageBitMask may be returned, fluent call is recommended.

Inflate(int)

Inflates this mask by the specified amount.

public override ImageMask Inflate(int size)

Parameters

size int

The amount to inflate this mask.

Returns

ImageMask

An inflated CircleMask as ImageMask.