VectSharp
2.2.1
A light library for C# vector graphics
|
Determines how and whether image filters are rasterised. More...
Public Types | |
enum | FilterOperations { FilterOperations.RasteriseAllWithSkia, FilterOperations.RasteriseAllWithVectSharp, FilterOperations.IgnoreAll, FilterOperations.SkipAll } |
Defines whether image filters should be rasterised or not. More... | |
Public Member Functions | |
FilterOption (FilterOperations operation, double rasterisationResolution, bool rasterisationResolutionRelative) | |
Create a new FilterOption object. More... | |
Static Public Attributes | |
static FilterOption | Default = new FilterOption(FilterOperations.RasteriseAllWithSkia, 1, true) |
The default options for image filter rasterisation. More... | |
Properties | |
FilterOperations | Operation = FilterOperations.RasteriseAllWithSkia [get] |
Defines whether image filters should be rasterised or not. More... | |
double | RasterisationResolution = 1 [get] |
The resolution that will be used to rasterise image filters. Depending on the value of RasterisationResolutionRelative, this can either be an absolute resolution (i.e. a size in pixel), or a scale factor that is applied to the image size in graphics units. More... | |
bool | RasterisationResolutionRelative = true [get] |
Determines whether the value of RasterisationResolution is absolute (i.e. a size in pixel), or relative (i.e. a scale factor that is applied to the image size in graphics units). More... | |
Determines how and whether image filters are rasterised.
Definition at line 1469 of file SKRenderContext.cs.
|
strong |
Defines whether image filters should be rasterised or not.
Enumerator | |
---|---|
RasteriseAllWithSkia | Image filters will always be rasterised using the SkiaSharp backend. |
RasteriseAllWithVectSharp | Image filters will always be rasterised using the VectSharp.Raster or VectSharp.Raster.ImageSharp. This option requires a reference to VectSharp.Raster or to VectSharp.Raster.ImageSharp to be added. |
IgnoreAll | All image filters will be ignored. |
SkipAll | All the images that should be drawn with a filter will be ignored. |
Definition at line 1474 of file SKRenderContext.cs.
VectSharp.Canvas.FilterOption.FilterOption | ( | FilterOperations | operation, |
double | rasterisationResolution, | ||
bool | rasterisationResolutionRelative | ||
) |
Create a new FilterOption object.
operation | Defines whether image filters should be rasterised or not. |
rasterisationResolution | The resolution that will be used to rasterise image filters. Depending on the value of RasterisationResolutionRelative, this can either be an absolute resolution (i.e. a size in pixel), or a scale factor that is applied to the image size in graphics units. |
rasterisationResolutionRelative | Determines whether the value of RasterisationResolution is absolute (i.e. a size in pixel), or relative (i.e. a scale factor that is applied to the image size in graphics units). |
Definition at line 1523 of file SKRenderContext.cs.
|
static |
The default options for image filter rasterisation.
Definition at line 1515 of file SKRenderContext.cs.
|
get |
Defines whether image filters should be rasterised or not.
Definition at line 1500 of file SKRenderContext.cs.
|
get |
The resolution that will be used to rasterise image filters. Depending on the value of RasterisationResolutionRelative, this can either be an absolute resolution (i.e. a size in pixel), or a scale factor that is applied to the image size in graphics units.
Definition at line 1505 of file SKRenderContext.cs.
|
get |
Determines whether the value of RasterisationResolution is absolute (i.e. a size in pixel), or relative (i.e. a scale factor that is applied to the image size in graphics units).
Definition at line 1510 of file SKRenderContext.cs.