please dont rip this site Prev Next

COLORADJUSTMENT info  Overview  Group

The COLORADJUSTMENT structure defines the color adjustment values used by the StretchBlt and StretchDIBits functions when the stretch mode is HALFTONE.

typedef struct  tagCOLORADJUSTMENT {    // ca 

    WORD  caSize; 

    WORD  caFlags; 

    WORD  caIlluminantIndex; 

    WORD  caRedGamma; 

    WORD  caGreenGamma; 

    WORD  caBlueGamma; 

    WORD  caReferenceBlack; 

    WORD  caReferenceWhite; 

    SHORT caContrast; 

    SHORT caBrightness; 

    SHORT caColorfulness; 

    SHORT caRedGreenTint; 

} COLORADJUSTMENT; 

 

Members

caSize
Specifies the size, in bytes, of the structure.
caFlags
Specifies how the output image should be prepared. This member may be set to NULL or any combination of the following values:

Value

Meaning

CA_NEGATIVE

Specifies that the negative of the original image should be displayed.

CA_LOG_FILTER

Specifies that a logarithmic function should be applied to the final density of the output colors. This will increase the color contrast when the luminance is low.

caIlluminantIndex
Specifies the type of standard light source under which the image is viewed. This member may be set to one of the following values:

Value

Meaning

ILLUMINANT_DEVICE_DEFAULT

Device’s default. Standard used by output devices.

ILLUMINANT_A

Tungsten lamp.

ILLUMINANT_B

Noon sunlight.

ILLUMINANT_C

NTSC daylight.

ILLUMINANT_D50

Normal print.

ILLUMINANT_D55

Bond paper print.

ILLUMINANT_D65

Standard daylight. Standard for CRTs and pictures.

ILLUMINANT_D75

Northern daylight.

ILLUMINANT_F2

Cool white lamp

ILLUMINANT_TUNGSTEN

Same as ILLUMINANT_A.

ILLUMINANT_DAYLIGHT

Same as ILLUMINANT_C.

ILLUMINANT_FLUORESCENT

Same as ILLUMINANT_F2.

ILLUMINANT_NTSC

Same as ILLUMINANT_C.

caRedGamma
Specifies the nth power gamma-correction value for the red primary of the source colors. The value must be in the range from 2500 to 65,000. A value of 10,000 means no gamma-correction.
caGreenGamma
Specifies the nth power gamma-correction value for the green primary of the source colors. The value must be in the range from 2500 to 65,000. A value of 10,000 means no gamma-correction.
caBlueGamma
Specifies the nth power gamma-correction value for the blue primary of the source colors. The value must be in the range from 2500 to 65,000. A value of 10,000 means no gamma-correction.
caReferenceBlack
Specifies the black reference for the source colors. Any colors that are darker than this are treated as black. The value must be in the range from 0 to 4000.
caReferenceWhite
Specifies the white reference for the source colors. Any colors that are lighter than this are treated as white. The value must be in the range from 6000 to 10,000.
caContrast
Specifies the amount of contrast to be applied to the source object. The value must be in the range from - 100 to 100. A value of 0 means no contrast adjustment.
caBrightness
Specifies the amount of brightness to be applied to the source object. The value must be in the range from - 100 to 100. A value of 0 means no brightness adjustment.
caColorfulness
Specifies the amount of colorfulness to be applied to the source object. The value must be in the range from - 100 to 100. A value of 0 means no colorfulness adjustment.
caRedGreenTint
Specifies the amount of red or green tint adjustment to be applied to the source object. The value must be in the range from - 100 to 100. Positive numbers adjust towards red and negative numbers adjust towards green. Zero means no tint adjustment.

See Also

SetStretchBltMode, StretchBlt, StretchDIBits 


file: /Techref/os/win/api/win32/struc/src/str01_23.htm, 7KB, , updated: 2000/4/7 11:20, local time: 2024/12/13 06:48,
TOP NEW HELP FIND: 
18.97.14.87:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/os/win/api/win32/struc/src/str01_23.htm"> COLORADJUSTMENT</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .