VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.Filters.IFilterWithLocation Interface Reference

Represents a filter whose results depend on the position of the subject image on the graphics surface. More...

Inheritance diagram for VectSharp.Filters.IFilterWithLocation:

Public Member Functions

RasterImage Filter (RasterImage image, Rectangle bounds, double scale)
 Applies the filter to a RasterImage. 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 whose results depend on the position of the subject image on the graphics surface.

Definition at line 55 of file Filters.cs.

Member Function Documentation

◆ Filter()

RasterImage VectSharp.Filters.IFilterWithLocation.Filter ( RasterImage  image,
Rectangle  bounds,
double  scale 
)

Applies the filter to a RasterImage.

Parameters
imageThe RasterImage to which the filter will be applied.
boundsThe region on the graphics surface where the image will be drawn.
scaleThe scale of the image with respect to the filter.
Returns
A new RasterImage containing the filtered image. The source image is left unaltered.

Implemented in VectSharp.Filters.MaskFilter.


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