ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Color management question

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Andy_Bell Posted - Feb 28 2021 : 17:38:20
Hi

I have an image, in ppm format, held in a stream. It has no built in ICC profile but I know that it was originally created with the ProPhoto profile.

I want to get it to display properly so I'm trying this:

IEGlobalSettings()->EnableCMS = true;
IEGlobalSettings()->ApplyColorProfileOnRendering = true;
IE->IO->Params->DefaultICCProfile->LoadFromFile("ProPhoto_RGB.icc");
IE->IO->NativePixelFormat = false;
IE->IO->LoadFromStreamPXM(stream);

However, the profile is not applied and

IE->IO->Params->InputICCProfile->IsApplied

returns false.

Maybe I'm reading the helpfile wrongly, but shouldn't the above code cause the profile to be applied? Commenting out the line IE->IO->NativePixelFormat = false;
or changing the value to true makes no difference...

Andy


Andy
2   L A T E S T    R E P L I E S    (Newest First)
Andy_Bell Posted - Mar 22 2021 : 19:54:35
Thanks

Andy

Andy
xequte Posted - Mar 19 2021 : 19:02:32
Hi Andy

At this time color profiles can only be applied to JPEG (RGB and CMYK) and TIFF images.

Otherwise you can manually apply profiles as follows:

// Apply InputICCProfile (AdobeRGB1998.icc) color profile to image and output as OutputICCProfile (Defaults to sRGB)
// Note: This permanently changes the colors of the image
ImageEnView1.IO.LoadFromFile('C:\out.ppm');
ImageEnView1.IO.Params.InputICCProfile.LoadFromFile('C:\AdobeRGB1998.icc');
ImageEnView1.IO.Params.InputICCProfile.ConvertBitmap( ImageEnView1.IEBitmap, ie24RGB, ImageEnView1.IO.Params.OutputICCProfile );


Note: "ProPhoto_RGB.icc" is not recognised as valid by the Windows CMS.

Nigel
Xequte Software
www.imageen.com