Interface IImageMask
Namespace: Aspose.Imaging.MagicWand.ImageMasks
Assembly: Aspose.Imaging.dll (25.2.0)
Describes a mask.
public interface IImageMask : ICloneable
Implements
Properties
Bounds
Gets the bounds, in pixels, of this mask.
Rectangle Bounds { get; }
Property Value
Height
Gets the height, in pixels, of this mask.
int Height { get; }
Property Value
SelectionBounds
Gets the bounds of the selected part of the mask, in pixels.
Rectangle SelectionBounds { get; }
Property Value
Source
Gets the source image used to create this mask, if exists.
RasterImage Source { get; }
Property Value
Width
Gets the width, in pixels, of this mask.
int Width { get; }
Property Value
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 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
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
true if the specified pixel is transparent; otherwise, false.