Hi

I try to apply an icm file to a monitor.
I work with delphi.

To change the profile I have tried:

InstallColorProfileA( nil, PAnsichar(IcmFileName)); //
Result is Ok

AssociateColorProfileWithDeviceA( 0,
PAnsichar(IcmFileName), PAnsichar(DeviceName));
// Result is not OK
// Get last error report error 6 
// DeviceName is ok, I can have it with a procedure
like
//      EnumDisplayDevices(nil, Index,
lpdisplaydevice1, 0);
//    
EnumDisplayDevices(@lpdisplaydevice1.DeviceName, 0,
lpdisplaydevice2, 0);
//     MONITORHDC := getdc(CreateDC(0,
lpdisplaydevice2.DeviceName , 0, 0));


First question:
Do you have an idea on what this error 6 means ?
Second question:
I have called a installColorProfile but when I look in
the advanced property of the screen property, the
color manager doesn’t contain my new profile. Do you
have an idea why?




        

        
                
_____________________________________________________________________________ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to