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)
- The constants to add for each single channel combined in one LONG value, you can write it as hex number directly (eg. &HAARRGGBB) or use the result of the _RGBA32 function, where you can give the constants for each channel as decimals. The resulting channel intensities are clipped to stay in range 0-255. For any channels which shall remain unaffected, simply use zero (0) as constant.
shan&, mask& (LONGs)
minX%, minY%, maxX%, maxY% (INTEGERs)
- See page Common Info.
RESULT:
newImg& (LONG)
- See page Common Info.