Class CircleMask

Class CircleMask

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

Describes a circle mask.

public class CircleMask : ImageMask, IImageMask, ICloneable
{
    private double _radius;
    public double Radius
    {
        get { return this._radius; }
        set { this._radius = value; }
    }
    public CircleMask()
    {
    }
    public object Clone()
    {
    }
}

Inheritance

object ImageMask CircleMask

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)
{
}
Here's the reformatted version with proper indentation, spacing and general readability improvements:
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)
{
}
In this case, no changes are necessary as the provided code is already formatted according to standard C# conventions.

Parameters

size int

The amount to inflate this mask.

Returns

ImageMask

An inflated CircleMask as ImageMask.

 English