You'll need something like this:

BarcodeInter25 barcodeDT = new BarcodeInter25();
CMYKColor barColor = new CMYKColor(...);
CMYKColor textColor = new CMYKColor(...);
iTextSharp.text.Image img1 = barcodeDT.CreateImageWithBarcode(cb, barColor, 
textColor);

Paulo

-----Original Message-----
From: Duncan_McCloud [mailto:[email protected]] 
Sent: Tuesday, August 03, 2010 3:21 PM
To: [email protected]
Subject: [iText-questions] IText Barcode Image Format


Hi,
i am actually try to print a barcode on a pdf which is CMYK and not RGB.
This is a sample of the code i am using:

BarcodeInter25 barcodeDT = new BarcodeInter25();          
iTextSharp.text.Image img1 =
iTextSharp.text.Image.GetInstance(barcodeDT.CreateDrawingImage(System.Drawing.Color.Black,
System.Drawing.Color.Transparent), System.Drawing.Imaging.ImageFormat.Bmp);

Is there some way to manipulate the object img1 and convert it to a CMYK
image instead of an RGB one?
Thank you in advance.
Diego
            
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/IText-Barcode-Image-Format-tp2311940p2311940.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to