 |
VectSharp
2.2.1
A light library for C# vector graphics
|
18 using System.Collections.Generic;
19 using System.Collections.Immutable;
37 public ImmutableList<ILocationInvariantFilter>
Filters {
get; }
45 IEnumerable<ILocationInvariantFilter> flattenedFilters = FlattenFilters(filters);
46 this.
Filters = ImmutableList.CreateRange(flattenedFilters);
48 bool initialised =
false;
50 foreach (
IFilter filter
in flattenedFilters)
72 private IEnumerable<ILocationInvariantFilter> FlattenFilters(IEnumerable<ILocationInvariantFilter> filters)
98 currImage = filter.
Filter(prevImage, scale);
100 if (prevImage != image)
Point TopLeftMargin
Determines how much the area of the filter's subject should be expanded on the top-left to accommodat...
CompositeLocationInvariantFilter(IEnumerable< ILocationInvariantFilter > filters)
Creates a new CompositeLocationInvariantFilter with the specified filters.
Represents a raster image, created from raw pixel data. Consider using the derived classes included i...
Represents a filter. Do not implement this interface directly; instead, implement ILocationInvariantF...
CompositeLocationInvariantFilter(params ILocationInvariantFilter[] filters)
Creates a new CompositeLocationInvariantFilter with the specified filters.
RasterImage Filter(RasterImage image, double scale)
Applies the filter to a RasterImage.
RasterImage Filter(RasterImage image, double scale)
Applies the filter to a RasterImage.
Point BottomRightMargin
Determines how much the area of the filter's subject should be expanded on the bottom-right to accomm...
Represents a filter that can be applied to an image regardless of its location on the graphics surfac...
Represents a filter that corresponds to applying multiple ILocationInvariantFilters one after the oth...
static Point Max(Point p1, Point p2)
Computes the bottom-right corner of the Rectangle identified by two Points.
Represents a point relative to an origin in the top-left corner.
ImmutableList< ILocationInvariantFilter > Filters
The filters that are applied by this filter.