Filters are a bit tricky subject. The theory is a bit complicated to get into here, but basically you can do low- and high-pass filtering, gradient calculation, sharpen or blurring, edge detect and lots of other cool stuff with this. You can probably find a great deal of information from any good book or website that discusses image processing in detail. Aw hell, simply try the provided filters and soon you'll be able to add your own filter matrices. The alpha channel of the source image is retained and copied 1:1.
SYNTAX:
newImg& = ApplyFilter& (shan&, filter$, addovr%, divovr%, minX%, minY%, maxX%, maxY%, mask&)
INPUTS:
filter$ (STRING)
- The name of the filter to apply, written case doesn't matter, scroll down for a list of all available filters.
addovr%, divovr% (INTEGERs)
- Override values for the filter defined "add" and/or "div" values respectively, these are used only if given <> 0.
shan&, mask& (LONGs)
minX%, minY%, maxX%, maxY% (INTEGERs)
- See page Common Info.
RESULT:
newImg& (LONG)
- See page Common Info.
FILTERS:
=== artistic ===
- Deep
- Rushhour
- Texture
- Wooden
=== blurring ===
- Average3
- Average5
- Average7
- Gauss4
- Gauss8
- NeedGlasses
- UnsharpCam
=== sharpen ===
- LowSharpen
- MediumSharpen
- HighSharpen
- MexicanHat
=== edge detect ===
- KirschN
- KirschNW
- KirschW
- KirschSW
- KirschS
- KirschSE
- KirschE
- KirschNE
- Laplace4
- Laplace8
- Roberts1
- Roberts2
=== line detect ===
- Prewitt1
- Prewitt2
- Sobel1
- Sobel2