Class ImageProcessing.Filter
Used when applying convolution filters to an image.
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class Filter
Constructors
| Improve this Doc View SourceFilter()
Constructor
Declaration
public Filter()
Filter(Int32, Int32)
Constructor
Declaration
public Filter(int Width, int Height)
Parameters
Properties
| Improve this Doc View SourceAbsolute
Determines if we should take the absolute value prior to clamping
Declaration
public bool Absolute { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
FilterHeight
Height of the filter box
Declaration
public int FilterHeight { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
FilterWidth
Width of the filter box
Declaration
public int FilterWidth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
MyFilter
The actual filter array
Declaration
public int[, ] MyFilter { get; set; }
Property Value
Type | Description |
---|---|
Int32[,] |
Offset
Amount to add to the red, blue, and green values
Declaration
public int Offset { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceApplyFilter(Color32[], Int32, Int32)
Applies filter to input Color32 array.
Declaration
public Color32[] ApplyFilter(Color32[] colors, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
Color32[] | colors | Source Color32 array. |
Int32 | width | Image width. |
Int32 | height | Image height. |
Returns
Type | Description |
---|---|
Color32[] | New Color32 array with filter applied. |