Operation Structures > 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; |
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:
| ||||||||||
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. |