Sometimes you may want to limit the intensities of any channel(s) into a given range, eg. to remove noise in the lower intensities or to keep the alpha transparency within a certain range.
SYNTAX:
newImg& = LimitARGB& (shan&, lowARGB&, highARGB&, minX%, minY%, maxX%, maxY%, mask&)
INPUTS:
lowARGB&, highARGB& (LONGs)
- The lower and upper limits for each channel combined in one LONG value respectively, you can write it as hex number directly (eg. &HAARRGGBB) or use the result of the _RGBA32 function, where you can specify the limits for each channel as decimals. For any channels which shall remain unaffected, use the maximum possible range, ie. 0 for the lower limit and 255 for the upper limit.
shan&, mask& (LONGs)
minX%, minY%, maxX%, maxY% (INTEGERs)
- See page Common Info.
RESULT:
newImg& (LONG)
- See page Common Info.