You are not rotating anything. For this to work you need:
image128.setRotationDegrees(90);
image128.setAbsolutePosition(x, y);
cb.addImage(image128);
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Huttin Pierre [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, April 09, 2003 14:55
> To: '[EMAIL PROTECTED]'
> Subject: [iText-questions] Barcode Rotation
>
> Hello all,
>
> I would like to add a Barcode to my document, but i want rotate it on the
> document to print it vertically, but i have a little problem, if I rotate
> the image like this :
>
> Barcode128 code128 = new Barcode128();
> code128.setCodeType(Barcode.CODE128_RAW);
> code128.setN(3);
> code128.setX(1.5f);
> code128.setBarHeight(36);
> code128.setSize(0);
> code128.setCode("1Z2345678");
> Image image128 = code128.createImageWithBarcode(cb, null, null);
> image128.setRotationDegrees(90);
> float posX = (float)(50);
> float posY = (float)(50);
> try {
> cb.addImage(image128, image128.scaledWidth(),
> 0,0,image128.scaledHeight(),posX,posY);
> } catch (Exception de) {
> // exception code here
> }
>
> this code rotate the image but not the bar in bar code.
>
> If anyone see a solution to my problem ??
>
> ---
> HUTTIN Pierre
> OMNIS ECM Services
> 81 route de Luxembourg
> L-4391 PONTPIERRE
>
> tel : (+352) 29 14 11 1
> fax : (+352) 29 14 11 650
> url : http://www.ecm.lu
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the security manager at [EMAIL PROTECTED]
> This footnote also confirms that this email message has been swept by
> the SOFITEC C.A.T.S. systems for the presence of computer viruses.
>
> For more information about C.A.T.S. please check
> http://www.sofitec.lu
> **********************************************************************
>
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions