It did the job...(Silly me!) 

Thanks!
jonathan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 02, 2007 11:15 AM
To: [email protected]
Cc: Jonathan Sibony
Subject: Re: [Podofo-users] CMYK buffer in PdfMemoryInputStream

Hello Jonathon,

I did not yet test with CMYK buffers myself, but did you try 
pImage.SetImageColorspace( ePdfColorSpace_DeviceCMYK ); ?

best regards,
        Dom

Am Sunday 02 September 2007 schrieb Jonathan Sibony:
> Hello all!
>
> I am facing troubles when handing a PdfMemoryInputStream an image in
> format other than RGB (e.g. CMYK), do we not support other formats?
> (image looks messed up)
> I made sure that buffer is ok, and buffer size given to constructor is
> appropriate.
>
> Snippet:
> PdfMemoryInputStream pStream ((const
char*)(tmpImageNoAlpha.GetLine(0)),
> bufferSizeInBytes);
> PdfImage pImage(&document);
> pImage.SetImageData (tmpImageNoAlpha.GetWidth(),
> tmpImageNoAlpha.GetHeight(), 8, &pStream);
> painter.DrawImage (...)
>
> Thanks in advance
> Jonathan



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for
KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to