PICTools Programmer's Reference
ADJUST

ADJUST: OP_ADJUST

 
Copy Code
typedef struct {
   DWORD               Reserved0;
   BYTE PICHUGE*       Reserved1;
   BYTE PICHUGE*       Reserved2;
   BYTE PICHUGE*       Reserved3;
   BYTE PICHUGE*       Reserved4;
   BYTE PICHUGE*       Reserved5;
   BYTE PICHUGE*       Reserved6;
   BYTE PICHUGE*       Reserved7;
   BYTE PICHUGE*       Reserved8;
   PICFLAGS            PicFlags;
   PICFLAGS            PicFlags2;
   LONG                Stride;
   LONG                Method;
   BITMAPINFOHEADER    BiOut;
   LONG                Color;
   LONG                Color;
   LONG                Red;
   LONG                Green;
   LONG                Blue;
   LONG                Shadows;
   LONG                Highlights;
} ADJUST;

Fields:

Name Description

Reserved0

Reserved1

Reserved2

Reserved3

Reserved4

Reserved5

Reserved6

Reserved7

Reserved8   

These fields are not currently used and must be set to 0.

PicFlags

May set PF_NoDibPad to force zero Stride.

PicFlags2

Not used specifically by this opcode.

Method

Set as indicated by the following table:

Method

Operation

0

Manual color correction

1

Manual lightness correction

2

Auto color correction

3

Auto lightness correction

Stride

Set to the image line width in bytes including padding at the end of the line width. If the stride is left 0 and PF_NoDibPad is not set in PicFlags, the stride will be calculated  [ (((Width *BitCount)+31)&(~31))/8 ] to be long word aligned. Deskew assumes padding.

BiOut

If the image is cropped the new image dimensions will be returned in this Bitmap header structure after a successful completion of the OP_ADJUST operation.

Color

Parameter is used for Color Correction. The parameter value is set from 0 to 100 with 0 as the neutral default value.

Red

Parameter is used for Color Correction. The parameter value is set from -100 to 100 with 0 as the neutral default value.

Green

Parameter is used for Color Correction. The parameter value is set from -100 to 100 with 0 as the neutral default value.

Blue

Parameter is used for Color Correction. The parameter value is set from -100 to 100 with 0 as the neutral default value.

Shadows

Parameter is used for Lightness Correction. The parameter value is set from 0 to 100 with 0 as the neutral default value. The larger numbers give brighter shadowed image areas.

Highlights

Parameter is used for Lightness Correction. The parameter value is set from 0 to 100 with 0 as the neutral default value. The larger numbers give darker highlighted image areas.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback