Apply profile to displayed image
Apply profile to displayed image
Hi, I am using the trial software to see if it can help me display images with an ICC profile applied. I am using VB.NET in Visual Studio 2005. I have done the following:
Set a gdPicture control on a form
Set an Imaging control on the same form
To display the image, I do this:
AxImaging1.CreateImageFromFile(sFilename)
lStatus = AxImaging1.ICCAddFromFile("C:\WINDOWS\system32\spool\drivers\color\profile.icm")
AxImaging1.DisplayImageOnHwnd(gdPicture1.hwnd, 0, 0, AxImaging1.GetWidth, AxImaging1.GetHeight)
My question simply is - is this sufficient to apply the profile to the displayed image, or is there something else I need to do? I am using real profiles, but I do not see any visible changes to the displayed image with and without the profile.
Set a gdPicture control on a form
Set an Imaging control on the same form
To display the image, I do this:
AxImaging1.CreateImageFromFile(sFilename)
lStatus = AxImaging1.ICCAddFromFile("C:\WINDOWS\system32\spool\drivers\color\profile.icm")
AxImaging1.DisplayImageOnHwnd(gdPicture1.hwnd, 0, 0, AxImaging1.GetWidth, AxImaging1.GetHeight)
My question simply is - is this sufficient to apply the profile to the displayed image, or is there something else I need to do? I am using real profiles, but I do not see any visible changes to the displayed image with and without the profile.
Re: Apply profile to displayed image
I've also tried using the CreateImageFromFileICM method to load the image into the AxImaging control - no difference.
My question is - is there anything else I need to do between the ICCAddFromFile and the DisplayImageOnHwnd? The help documentation is fairly thin. This might be working fine, but I can't tell from what I'm seeing.
My question is - is there anything else I need to do between the ICCAddFromFile and the DisplayImageOnHwnd? The help documentation is fairly thin. This might be working fine, but I can't tell from what I'm seeing.
Re: Apply profile to displayed image
Hi,
GdPicture decode each CMYK image to RGB color space in order to symplify editing operations.
In this case if you want to render a CMYK image using a specific color profile you have to do something like this:
Note that the ICCAddProfileToFile() method are waiting for a CMYK image file.
Best regards,
Loïc
GdPicture decode each CMYK image to RGB color space in order to symplify editing operations.
In this case if you want to render a CMYK image using a specific color profile you have to do something like this:
Code: Select all
Call Imaging1.ICCAddProfileToFile("cmykimage.tif", "profile.icc")
Imaging1.CreateImageFromFileICM ("cmykimage.tif")
Best regards,
Loïc
Re: Apply profile to displayed image
Thanks for that Loic - but what if my source images are RGB, not CMYK? I'm sure there is a way to convert them, but it's not clear to me how to do that. Sorry if this is a dumb question - this is all very new to me.
Re: Apply profile to displayed image
Hi,
The RGB image -> CMYK image conversion is into our wish list.
I hope we will release this feature soon.
Loïc
The RGB image -> CMYK image conversion is into our wish list.
I hope we will release this feature soon.
Loïc
Re: Apply profile to displayed image
Thanks Loic - I'll be watching for that with interest!
Re: Apply profile to displayed image
We added a new function to apply a RGB profile to the native image: ICCSetRGBProfile()
https://www.gdpicture.com/guides/gdpicture/v5/gdpictur ... ofile.html
Loïc
https://www.gdpicture.com/guides/gdpicture/v5/gdpictur ... ofile.html
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests