RasterImageExtension.ApplyMask

RasterImageExtension.ApplyMask method

Applies IImageMask to the RasterImage.

public static void ApplyMask(RasterImage image, IImageMask mask)
ParameterTypeDescription
imageRasterImageImage to apply mask to.
maskIImageMaskThe mask to be applied.

Exceptions

exceptioncondition
ArgumentExceptionThrown when the mask size is smaller than image.

See Also