VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.Filters.MaskFilter Class Reference

Represents a filter that uses the luminance of an image to mask another image. More...

Inheritance diagram for VectSharp.Filters.MaskFilter:

Public Member Functions

 MaskFilter (Graphics mask)
 Creates a new MaskFilter with the specified mask image. More...
 
RasterImage Filter (RasterImage image, Rectangle bounds, double scale)
 Applies the filter to a RasterImage.
 
- Public Member Functions inherited from VectSharp.Filters.FilterWithRasterisableParameter
virtual void RasteriseParameter (Func< Graphics, Rectangle, double, bool, RasterImage > rasterisationMethod, double scale)
 Rasterises the filter's parameter at the specified scale, using the specified rasterisation method.
 
void Dispose ()
 

Public Attributes

Point TopLeftMargin => new Point(0, 0)
 
Point BottomRightMargin => new Point(0, 0)
 
Graphics Mask => this.RasterisableParameter
 The image that is used to mask the input image. More...
 

Additional Inherited Members

- Properties inherited from VectSharp.Filters.IFilter
Point TopLeftMargin [get]
 Determines how much the area of the filter's subject should be expanded on the top-left to accommodate the results of the filter. More...
 
Point BottomRightMargin [get]
 Determines how much the area of the filter's subject should be expanded on the bottom-right to accommodate the results of the filter. More...
 

Detailed Description

Represents a filter that uses the luminance of an image to mask another image.

Definition at line 26 of file MaskFilter.cs.

Constructor & Destructor Documentation

◆ MaskFilter()

VectSharp.Filters.MaskFilter.MaskFilter ( Graphics  mask)

Creates a new MaskFilter with the specified mask image.

Parameters
maskThe image that is used to mask the input image.

Definition at line 42 of file MaskFilter.cs.

Member Data Documentation

◆ Mask

Graphics VectSharp.Filters.MaskFilter.Mask => this.RasterisableParameter

The image that is used to mask the input image.

Definition at line 36 of file MaskFilter.cs.


The documentation for this class was generated from the following file: