PICTools Programmer's Reference
OP_ADJUST

OP_ADJUST: Adjust Image Color and Lightness

The OP_ADJUST opcode (see opcode specific data structure) provides a mechanism for adjusting the Color, Shadows, and Highlights of an 8-bit grayscale or 24-bit image, in one of two ways: manually or automatically. In manual mode (Method=0 or 1) the user can vary any one or all of the parameters from its default neutral value. The automatic modes are AutoColor (Method=2) and AutoLightness (Method=3). In automatic modes, parameters of corresponding manual algorithms in the u.ADJ structure are filled in with selected default values. Modifications are made to the pixels themselves for both 24bpp images and 8bpp grayscale images.

This operation is performed on a subrectangle of the image if F_Crop is set in PIC_PARM.Flags and the PIC_PARM fields CropXoff, CropYoff, CropWidth, and CropHeight are set. The entire image is analyzed in the automatic modes. Only the selected region is modified and output to the Put Queue.

 

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback