### QPx_RGBBalancePicture

QPx_RGBBalancePicture(pictVar; redAmount; greenAmount; blueAmount):error
| pictVar | Picture | Picture variable
| redAmount | Longint | Red amount
| greenAmount | Longint | Green amount
| blueAmount | Longint | Blue amount
| error | Longint | Error result

Applies the "RGB Balance" filter to a picture.

The source picture is passed in the pictVar parameter. The source picture may be compressed or uncompressed. The filtered picture is also returned in the pictVar parameter and it is always uncompressed. If an error occurs, pictVar is set to an empty picture.

Parameter redAmount must be in the 0 ... 200 range. A value of 100 means no change to the picture's red channel.

Parameter greenAmount must be in the 0 ... 200 range. A value of 100 means no change to the picture's green channel.

Parameter blueAmount must be in the 0 ... 200 range. A value of 100 means no change to the picture's blue channel.

Related commands

QPx_FilterPicture | Applies a filter to a picture
QPx_BrightnessContrastPicture | Applies the "Escape Brightness and Contrast" filter to a picture
QPx_SharpenPicture | Applies the "Sharpen" filter to a picture
QPx_BlurPicture | Applies the "Blur" filter to a picture
QPx_HSLBalancePicture | Applies the "HSL Balance" filter to a picture

QPix © Escape
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:43:32