Interface IImageMask

Interface IImageMask

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

Describes a mask.

public interface IImageMask : ICloneable

Implements

ICloneable

Properties

Bounds

Gets the bounds, in pixels, of this mask.

Rectangle Bounds { get; }

Property Value

Rectangle

Height

Gets the height, in pixels, of this mask.

int Height { get; }

Property Value

int

SelectionBounds

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

Rectangle SelectionBounds { get; }

Property Value

Rectangle

Source

Gets the source image used to create this mask, if exists.

RasterImage Source { get; }

Property Value

RasterImage

Width

Gets the width, in pixels, of this mask.

int Width { get; }

Property Value

int

Methods

GetByteOpacity(int, int)

Gets the opacity of the specified pixel with byte precision.

byte GetByteOpacity(int x, int y)

Parameters

x int

The x-coordinate of the pixel.

y int

The y-coordinate of the pixel.

Returns

byte

Byte value, representing the opacity of the specified pixel.

IsOpaque(int, int)

Checks if the specified pixel is opaque.

bool IsOpaque(int x, int y)

Parameters

x int

The x-coordinate of the pixel.

y int

The y-coordinate of the pixel.

Returns

bool

true if the specified pixel is opaque; otherwise, false.

IsTransparent(int, int)

Checks if the specified pixel is transparent.

bool IsTransparent(int x, int y)

Parameters

x int

The x-coordinate of the pixel.

y int

The y-coordinate of the pixel.

Returns

bool

true if the specified pixel is transparent; otherwise, false.