Click here to Skip to main content
15,901,853 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting by name. Pin
Tomas Wilhelmsson19-May-03 21:48
Tomas Wilhelmsson19-May-03 21:48 
GeneralRe: Getting by name. Pin
Tomas Wilhelmsson19-May-03 23:06
Tomas Wilhelmsson19-May-03 23:06 
GeneralRe: Getting by name. Pin
Niklas L20-May-03 2:50
Niklas L20-May-03 2:50 
GeneralHide physical Disk Pin
rohit.dhamija19-May-03 1:08
rohit.dhamija19-May-03 1:08 
GeneralRe: Hide physical Disk Pin
svsrikanth20-May-03 2:16
svsrikanth20-May-03 2:16 
GeneralHttp connection timeout Pin
Jump_Around19-May-03 1:06
Jump_Around19-May-03 1:06 
GeneralRe: Http connection timeout Pin
David Crow19-May-03 2:56
David Crow19-May-03 2:56 
Generalimage color management Pin
Muhammad Ahmed19-May-03 1:05
Muhammad Ahmed19-May-03 1:05 
i'll be extremely gratefull to the people who try to help me .

My question is regarding the use of icm 2 api and is listed below

i am trying to find colors that are out of printer gamut using icm 2.0
using the following code

/*Getting color profile handles*/

HPROFILE hICMMonitorProfile
=OpenColorProfile(&input_profile_struc,
PROFILE_READ,FILE_SHARE_READ, OPEN_EXISTING);
HPROFILE hICMOutPutProfile
=OpenColorProfile(&output_profile_struc,
PROFILE_READ,FILE_SHARE_READ, OPEN_EXISTING);
if (hICMMonitorProfile == NULL||hICMOutPutProfile ==
NULL)
{
AfxMessageBox("OpenColorProfile() failed");
}

///////////////////////////////////////////////////////////////////////
/
///

/*Creating color transform*/
LOGCOLORSPACE lcs = {
LCS_SIGNATURE, 0x400,
sizeof(LOGCOLORSPACE)
};

lcs.lcsCSType = LCS_WINDOWS_COLOR_SPACE;

lcs.lcsIntent = LCS_GM_GRAPHICS;

m_hICMColorTransform =CreateColorTransform(&lcs,
hICMMonitorProfile,hICMOutPutProfile,ENABLE_GAMUT_
CHECKING|INTENT_RELAT
I
VE_COLORIMETRIC);
if (m_hICMColorTransform == NULL)
{
AfxMessageBox("ICM CreateColorTransform() failed");
}
/*checking RGB colors ,if they out of printer gamut ,
using code as
follows*/



//getting RGB color values from sliders

ICMInColor.rgb.red=m_R.GetPos();
ICMInColor.rgb.green=m_G.GetPos();
ICMInColor.rgb.blue=m_B.GetPos();
BYTE bytearray[1];
bytearray[0]=0;

CheckColors(m_hICMColorTransform,&ICMInColor,1,COLOR_RGB,bytearray);

if(bytearray[0]!=0)
{
//the color is now of of gamut

//according to my perceptionSmile | :)

}

this code never shows any value as out of gamut however when i use that

same profiles in photoshop ,the results are far away...different from it can anyone please help me ,solve this problem and also tell me any forums relating to icm discussion

ahmed
GeneralFLASH API Pin
Suresh Chandra M19-May-03 0:56
Suresh Chandra M19-May-03 0:56 
GeneralPassing an object pointer from C++ to VB Pin
pankajdaga19-May-03 0:46
pankajdaga19-May-03 0:46 
GeneralRe: Passing an object pointer from C++ to VB Pin
Jason Henderson19-May-03 3:09
Jason Henderson19-May-03 3:09 
GeneralRe: Passing an object pointer from C++ to VB Pin
pankajdaga19-May-03 4:14
pankajdaga19-May-03 4:14 
GeneralRe: Passing an object pointer from C++ to VB Pin
Jason Henderson19-May-03 4:22
Jason Henderson19-May-03 4:22 
GeneralRe: Passing an object pointer from C++ to VB Pin
pankajdaga19-May-03 4:35
pankajdaga19-May-03 4:35 
GeneralRe: Passing an object pointer from C++ to VB Pin
Jason Henderson19-May-03 4:55
Jason Henderson19-May-03 4:55 
GeneralRe: Passing an object pointer from C++ to VB Pin
pankajdaga19-May-03 4:58
pankajdaga19-May-03 4:58 
GeneralMapping Accelerator to Dialog Boxes. Pin
Jawache19-May-03 0:24
Jawache19-May-03 0:24 
GeneralRe: Mapping Accelerator to Dialog Boxes. Pin
Jawache19-May-03 0:36
Jawache19-May-03 0:36 
QuestionHow to send email ? Pin
Nguyen Huynh Hung19-May-03 0:12
Nguyen Huynh Hung19-May-03 0:12 
AnswerRe: How to send email ? Pin
Dominik Reichl19-May-03 0:53
Dominik Reichl19-May-03 0:53 
AnswerRe: How to send email ? Pin
Renjith Ramachandran19-May-03 6:13
Renjith Ramachandran19-May-03 6:13 
GeneralTracking Memory Allocations Pin
The_Server19-May-03 0:02
The_Server19-May-03 0:02 
GeneralRe: Tracking Memory Allocations Pin
Vikram A Punathambekar19-May-03 0:09
Vikram A Punathambekar19-May-03 0:09 
GeneralRe: Tracking Memory Allocations Pin
Neville Franks19-May-03 0:29
Neville Franks19-May-03 0:29 
GeneralRe: Tracking Memory Allocations Pin
Vikram A Punathambekar19-May-03 0:55
Vikram A Punathambekar19-May-03 0:55 

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.