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
**********************************************************************
pgpcbrJ94bh0r.pgp
Description: PGP signature
------------------------------------------------------------------------- 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
