back to Table of Contents


ApplyFilter (function)

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)

addovr%, divovr% (INTEGERs)

shan&, mask& (LONGs)

minX%, minY%, maxX%, maxY% (INTEGERs)


RESULT:

newImg& (LONG)


FILTERS:

=== artistic ===

=== blurring ===

=== sharpen ===

=== edge detect ===

=== line detect ===


back to Table of Contents