QPx_BrightnessContrastPicture
QPx_BrightnessContrastPicture(pictVar; pictVar; pictVar):error | |||
---|---|---|---|
![]() |
pictVar | Picture | Picture variable |
![]() |
brightnessAmount | Longint | Brightness amount |
![]() |
contrastAmount | Longint | Contrast amount |
![]() |
error | Longint | Error result |
Apply the "Escape Brightness and Contrast" 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 is always uncompressed. If an error occurs, pictVar is set to an empty picture.
Parameter brightnessAmount must be in the -100...100 range. A value of 0 means no change.
Parameter contrastAmount must be in the -100...100 range. A value of 0 means no change.
Related commands
QPx_FilterPicture | Apply a filter to a picture |
QPx_SharpenPicture | Apply the "Sharpen" filter to a picture |
QPx_BlurPicture | Apply the "Blur" filter to a picture |
QPx_RGBBalancePicture | Apply the "RGB Balance" filter to a picture |
QPx_HSLBalancePicture | Apply the "HSL Balance" filter to a picture |