Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: RGB/GrayScale to CMYK
Conf: (P-PDF) Developers, Msg: 78022
From: vishak
Date: 12/11/2002 01:00 AM

Hi PDF Gurus,

I am using Windows 2000 ICM 2.0 API's for ICC profile based color conversion (RGB 2 CMYK / GrayScale 2 CMYK) on image data with in Acrobat. I am using "TranslateColors" API for doing the conversion, This is how i am using it,

BYTE *pSrcBits = NULL; // source image data buffer
BYTE *pDestBits = NULL; // destination image data buffer

My HTRANSFORM like this:
ZeroMemory(&lcs, sizeof(LOGCOLORSPACE));
lcs.lcsSignature = LCS_SIGNATURE;
lcs.lcsVersion = 0x400;
lcs.lcsSize = sizeof(LOGCOLORSPACE);
lcs.lcsCSType = LCS_sRGB;

hTransform = CreateColorTransform(&lcs, hDestProfile, hTargetProfile,ENABLE_GAMUT_CHECKING | BEST_MODE);
if((TranslateColors(hTransform,(PCOLOR)(pSrcBits + dwOffset),dwWidth, COLOR_RGB,(PCOLOR)(pDestBits + dwDestOffSet),COLOR_CMYK)) == FALSE){
To my suprise the CMYK image i get is having a 'Blueish' tint...!!. Has anyone successfully used ICM? If so please advice me on this. Where can i get more info on MS ICM and how to use it with in Acrobat ??

Good Day,


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.