Class EmptyImageMask

EmptyImageMask class

Describes an empty non-abstract mask.

public class EmptyImageMask : ImageMask

Constructors

NameDescription
EmptyImageMask(int, int)Initializes a new instance of the EmptyImageMask class with the specified width and height.

Properties

NameDescription
Bounds { get; }Gets the bounds, in pixels, of this mask.
Height { get; }Gets the height, in pixels, of this mask.
override Item { get; }Gets the opacity of the specified pixel.
override SelectionBounds { get; }Gets the bounds of the selected part of the mask, in pixels.
Source { get; }Gets the source image used to create this mask, if exists.
Width { get; }Gets the width, in pixels, of this mask.

Methods

NameDescription
Apply()Applies current mask to the RasterImage source, if exists.
ApplyTo(RasterImage)Applies current mask to the specified RasterImage.
override Clone()Creates a new object that is a copy of the current instance.
override Crop(Rectangle)Crops mask with the specified rectangle.
Crop(Size)Crops mask with the specified size.
Crop(int, int)Crops mask with the specified width and height.
ExclusiveDisjunction(ImageMask)Gets the exclusive disjunction of current mask with provided.
ExclusiveDisjunction(MagicWandSettings)Gets the exclusive disjunction of the current mask with the result of magic wand selection applied to the source of the mask.
ExclusiveDisjunction(RasterImage, MagicWandSettings)Gets the exclusive disjunction of the current mask with the result of magic wand selection applied to the provided image.
GetByteOpacity(int, int)Gets the opacity of the specified pixel with byte precision.
GetFeathered(FeatheringSettings)Gets grayscale mask with the border feathered with the specified settings.
override Inflate(int)Inflates this mask by the specified amount.
Intersect(ImageMask)Gets the intersection of current mask with provided.
Intersect(MagicWandSettings)Gets the intersection of the current mask with the result of magic wand selection applied to the source of the mask.
Intersect(RasterImage, MagicWandSettings)Gets the intersection of the current mask with the result of magic wand selection applied to the provided image.
Invert()Gets the inversion of the current mask.
IsOpaque(int, int)Checks if the specified pixel is opaque.
IsTransparent(int, int)Checks if the specified pixel is transparent.
Subtract(ImageMask)Gets the subtraction of the provided mask from current.
Subtract(MagicWandSettings)Gets the result of magic wand selection applied to the source of the current mask subtracted from the mask.
Subtract(RasterImage, MagicWandSettings)Gets the result of magic wand selection applied to the provided image subtracted from the current mask.
Union(ImageMask)Gets the union of the current mask with provided.
Union(MagicWandSettings)Gets the union of the current mask with the result of magic wand selection applied to the source of the mask.
Union(RasterImage, MagicWandSettings)Gets the union of the current mask with the result of magic wand selection applied to the provided image.

See Also