back to Table of Contents


AddConstant (function)

This simple effect takes the image and adds the constants in 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 adding to the alpha channel.


SYNTAX:

newImg& = AddConstant& (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