scaleAbsoluteHeight() does not change the width of the image.

Best Regards,
Paulo Soares


> -----Original Message-----
> From: Collard, John [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, May 27, 2003 10:30 PM
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Image scale
> 
> I am attempting to: get an image, add it to a cell, and put the cell into
> a table.  Like:
> 
>                       Image img = null;
>                       try 
>                       {
>                               img = Image.getInstance( new URL(
> this.imageURL));
>                               img.scaleAbsoluteHeight(10);
> 
>                               PdfPCell imgCell = new PdfPCell(img);
>                               imgCell.setFixedHeight(10); 
>                               topTable.addCell(img);
>                       }
>                       catch (BadElementException bee)
> 
> The image still takes up the full width of the table cell -- even with
> scaleAbsoluteHeight and setFixedHeight. 
> 
> Any help would be appreciated.
> 
> Thanks,
> > - John 
> > 
> > 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to