Class EmptyImageMask

Class EmptyImageMask

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

Describes an empty non-abstract mask.

public class EmptyImageMask : ImageMask, IImageMask, ICloneable

Inheritance

objectImageMaskEmptyImageMask

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

EmptyImageMask(int, int)

Initializes a new instance of the Aspose.Imaging.MagicWand.ImageMasks.EmptyImageMask class with the specified width and height.

public EmptyImageMask(int width, int height)

Parameters

width int

Width of the mask.

height int

Height of the mask.

Properties

SelectionBounds

Gets the bounds of the selected part of the mask, in pixels.

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 EmptyImageMask as ImageMask.

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 EmptyImageMask as ImageMask.