QPx_HSLBalanceAreaImage
QPx_HSLBalanceAreaImage(areaRef; areaRef; areaRef; areaRef; areaRef):error | |||
---|---|---|---|
![]() |
areaRef | Longint | QPix area reference |
![]() |
hueAmount | Longint | Hue amount |
![]() |
saturationAmount | Longint | Saturation amount |
![]() |
lightnessAmount | Longint | Lightness amount |
![]() |
selectionOnly | Longint | Filter selection only |
![]() |
error | Longint | Error result |
Apply the HSL-Balance filter to the image in a QPix area
The plug-in area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qpx_paramErr is returned.
Parameter hueAmount must be in the -60...60 range. A value of 0 means no change.
Parameter saturationAmount must be in the 0...200 range. A value of 100 means no change.
Parameter lightnessAmount must be in the 0...200 range. A value of 100 means no change.
The selectionOnly parameter denotes which posrtion of the image to filter. To filter the entire image, set selectionOnly to 0. To filter the image portion under the selection marquee, set selectionOnly to 1.
Related commands
QPx_FilterAreaImage | Apply a filter to the image in a QPix area |
QPx_BrightnessContrastAreaImg | Apply the Escape Brightness and Contrast filter to the image in a QPix area |
QPx_SharpenAreaImage | Apply the Sharpen filter to the image in a QPix area |
QPx_BlurAreaImage | Apply the Blur filter to the image in a QPix area |
QPx_RGBBalanceAreaImage | Apply the RGB Balance filter to the image in a QPix area |