back to Table of Contents


SubConstant (function)

This simple effect takes the image and does subtract the constants from each pixel. For example, you can use this for a brightness adjustment, but different from the ModifyBrightness()/ModifyGamma() functions you can modify each channel with other values, which could be used to add or remove a tint to/from the image. Another thing you can easily do using this effect is changing the image's transparency by only substract from the alpha channel.


SYNTAX:

newImg& = SubConstant& (shan&, constARGB&, minX%, minY%, maxX%, maxY%, mask&)

INPUTS:

constARGB& (LONG)

shan&, mask& (LONGs)

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


RESULT:

newImg& (LONG)


back to Table of Contents