QPix Command Reference
![]() |
![]() |
QPx_HSLBalanceAreaImage(areaRef; hueAmount; saturationAmount; lightnessAmount; selectionOnly):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 |
Applies the "HSL Balance" filter to the image in a QPix plug-in area.
The QPix 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 to the image's hue.
Parameter saturationAmount must be in the 0 ... 200 range. A value of 100 means no change to the image's saturation.
Parameter lightnessAmount must be in the 0 ... 200 range. A value of 100 means no change to the image's lightness.
The selectionOnly parameter is a number that denotes what part of the image to filter. To filter the whole image, set selectionOnly to 0. To filter the image portion that is currently selected with the marquee tool, set selectionOnly to 1.
Related commands
QPx_FilterAreaImage | Applies a filter to the image in a QPix plug-in area |
QPx_BrightnessContrastAreaImg | Applies the "Escape Brightness and Contrast" filter to the image in a QPix plug-in area |
QPx_SharpenAreaImage | Applies the "Sharpen" filter to the image in a QPix plug-in area |
QPx_BlurAreaImage | Applies the "Blur" filter to the image in a QPix plug-in area |
QPx_RGBBalanceAreaImage | Applies the "RGB Balance" filter to the image in a QPix plug-in area |