Page 1 of 1
Color Profile
Posted: Thu Jan 02, 2014 1:42 am
by Wolfram
Hi,
I have an png image with a color profile.
The ImageGadget ignores the color profile.
How can I show this image correct in my my program?
Re: Color Profile
Posted: Thu Jan 02, 2014 7:19 am
by wilbert
Does it make a difference if you don't use the PureBasic PNG decoder ?
It might be possible that the decoder that comes with OS X works better.
The LoadImageEx procedure in this thread
http://www.purebasic.fr/english/viewtop ... 73#p392073 loads the image without the need for the PB decoder.
Re: Color Profile
Posted: Thu Jan 02, 2014 2:12 pm
by Wolfram
No, it looks same.
I think there must be a command for using color management.
Is you example code right?
I have to replace
Code: Select all
CreateImage(Image, Width, Height, 32 | #PB_Image_Transparent)
with
Code: Select all
CreateImage(Image, Width, Height, 32 , #PB_Image_Transparent)
otherwise I get a compiler error.
Re: Color Profile
Posted: Thu Jan 02, 2014 2:23 pm
by wilbert
Thanks for mentioning the compiler error.
I changed the code now. The other syntax was the right way for a previous version of PB.
Maybe you can post a link to the image you have a problem with.
That way it is possible to see what is going wrong.