Show / Hide Table of Contents

Class ImageProcessing.Filter

Used when applying convolution filters to an image.

Inheritance
Object
ImageProcessing.Filter
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class Filter

Constructors

| Improve this Doc View Source

Filter()

Constructor

Declaration
public Filter()
| Improve this Doc View Source

Filter(Int32, Int32)

Constructor

Declaration
public Filter(int Width, int Height)
Parameters
Type Name Description
Int32 Width

Width

Int32 Height

Height

Properties

| Improve this Doc View Source

Absolute

Determines if we should take the absolute value prior to clamping

Declaration
public bool Absolute { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

FilterHeight

Height of the filter box

Declaration
public int FilterHeight { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

FilterWidth

Width of the filter box

Declaration
public int FilterWidth { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MyFilter

The actual filter array

Declaration
public int[, ] MyFilter { get; set; }
Property Value
Type Description
Int32[,]
| Improve this Doc View Source

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 Source

ApplyFilter(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.

  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • Filter()
    • Filter(Int32, Int32)
  • Properties
    • Absolute
    • FilterHeight
    • FilterWidth
    • MyFilter
    • Offset
  • Methods
    • ApplyFilter(Color32[], Int32, Int32)
Back to top Generated by DocFX