BUG: ComponentsPerPixel and CMYK images

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

User avatar
Ithier
Posts: 47
Joined: Fri Nov 19, 2004 10:50 am
Location: Paris, France

BUG: ComponentsPerPixel and CMYK images

Post by Ithier »

When I load a CMYK image without the GFL_LOAD_ORIGINAL_COLORMODEL, the image is loaded in RVB as requested, but the ComponentsPerPixel of the GFL_BITMAP structure still indicate 4, so when I try to use another function like gflAddText the result is garbage.
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: BUG: ComponentsPerPixel and CMYK images

Post by xnview »

Ithier wrote:When I load a CMYK image without the GFL_LOAD_ORIGINAL_COLORMODEL, the image is loaded in RVB as requested, but the ComponentsPerPixel of the GFL_BITMAP structure still indicate 4, so when I try to use another function like gflAddText the result is garbage.
Could you send me a sample, please?
Pierre.