Click here to Skip to main content
15,915,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reboot windows 95 machines Pin
RobJones6-Nov-01 9:06
RobJones6-Nov-01 9:06 
GeneralImage Acquisition Pin
Chambers6-Nov-01 7:15
Chambers6-Nov-01 7:15 
GeneralRe: Image Acquisition Pin
Chris Losinger6-Nov-01 7:21
professionalChris Losinger6-Nov-01 7:21 
GeneralRe: Image Acquisition Pin
#realJSOP6-Nov-01 7:46
professional#realJSOP6-Nov-01 7:46 
GeneralRe: Image Acquisition Pin
Chambers7-Nov-01 2:25
Chambers7-Nov-01 2:25 
GeneralRe: Image Acquisition Pin
Chris Losinger7-Nov-01 2:49
professionalChris Losinger7-Nov-01 2:49 
GeneralRe: Image Acquisition Pin
Chambers7-Nov-01 5:00
Chambers7-Nov-01 5:00 
GeneralImage Color Management (ICM) Pin
6-Nov-01 7:03
suss6-Nov-01 7:03 
Basically what I need to do is convert printing press CMYK colors to display RGB.
What I have been trying to do is this:
1) Get Profiles for display and press. In this case I'm using an RGB profile of CPQV1100.ICM (a Compaq supplied monitor profile) and a CMYK profile of CLC500M7.ICM which is a Canon profile for their color laser printer.

2) With the HPROFILES I then create an HTRANSFORM like this:
LOGCOLORSPACE lcs;
ZeroMemory(&lcs, sizeof(LOGCOLORSPACE));
lcs.lcsSignature = LCS_SIGNATURE;
lcs.lcsVersion = 0x400;
lcs.lcsSize = sizeof(LOGCOLORSPACE);
lcs.lcsCSType = LCS_WINDOWS_COLOR_SPACE;
lcs.lcsIntent = LCS_GM_IMAGES;

hTransform = CreateColorTransform(&lcs, hDestProfile, hTargetProfile, BEST_MODE);

3) I then fill a COLOR record like this
color.cmyk.cyan = 65535;
color.cmyk.magenta = 0;
color.cmyk.yellow = 0;
color.cmyk.black = 0;

4) Then I call:
TranslateColors(hTransform, &color, 1, COLOR_CMYK, &outcolor, COLOR_RGB);

5) The rgb colors in the outcolor structure come nowhere near the input colors.

I would greatly appreciate any help anyone can give in the use of ICM.
Thanks

Andy Brace
SW Development Engineer II
Qwest
A clear conscience is usually the sign of a bad memory.
GeneralLog deletes in BoundsChecker Pin
peterchen6-Nov-01 7:00
peterchen6-Nov-01 7:00 
Generalsys/socket.h Pin
6-Nov-01 5:42
suss6-Nov-01 5:42 
GeneralRe: sys/socket.h Pin
Tim Smith6-Nov-01 6:22
Tim Smith6-Nov-01 6:22 
GeneralRe: sys/socket.h Pin
Anders Molin6-Nov-01 7:11
professionalAnders Molin6-Nov-01 7:11 
GeneralMessage from external app should: Open document and goto line # Pin
Steve Schaneville6-Nov-01 4:48
professionalSteve Schaneville6-Nov-01 4:48 
GeneralRe: Message from external app should: Open document and goto line # Pin
6-Nov-01 6:32
suss6-Nov-01 6:32 
GeneralRe: Message from external app should: Open document and goto line # Pin
Steve Schaneville6-Nov-01 6:56
professionalSteve Schaneville6-Nov-01 6:56 
GeneralRe: Message from external app should: Open document and goto line # Pin
Ben Burnett6-Nov-01 7:12
Ben Burnett6-Nov-01 7:12 
GeneralRepeat the song... (VFW.lib) Pin
Rickard Andersson206-Nov-01 4:31
Rickard Andersson206-Nov-01 4:31 
GeneralRe: Repeat the song... (VFW.lib) Pin
Rassman6-Nov-01 4:52
Rassman6-Nov-01 4:52 
GeneralRe: Repeat the song... (VFW.lib) Pin
Ben Burnett6-Nov-01 9:53
Ben Burnett6-Nov-01 9:53 
GeneralFlex Grid ! Pin
Hadi Rezaee6-Nov-01 4:21
Hadi Rezaee6-Nov-01 4:21 
GeneralRe: Flex Grid ! Pin
Rassman6-Nov-01 5:03
Rassman6-Nov-01 5:03 
GeneralRe: Flex Grid ! Pin
Hadi Rezaee6-Nov-01 6:34
Hadi Rezaee6-Nov-01 6:34 
GeneralRe: Flex Grid ! Pin
Hadi Rezaee6-Nov-01 16:03
Hadi Rezaee6-Nov-01 16:03 
GeneralRe: Flex Grid ! Pin
Jon Hulatt6-Nov-01 22:22
Jon Hulatt6-Nov-01 22:22 
GeneralRe: Flex Grid ! Pin
Hadi Rezaee7-Nov-01 7:37
Hadi Rezaee7-Nov-01 7:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.