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;
|
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. |
|
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. |
SetStretchBltMode, StretchBlt, StretchDIBits
See also:
| file: /Techref/os/win/api/win32/struc/src/str01_23.htm, 7KB, , updated: 2000/4/7 11:20, local time: 2012/2/10 15:49,
38.107.179.234:LOG IN |
| ©2012 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? <A HREF="http://www.piclist.com/tecHREF/os/win/api/win32/struc/src/str01_23.htm"> COLORADJUSTMENT</A> |
| Did you find what you needed? |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.