Hi,

please provide a stack trace, otherwise we are just guessing (and I don't feel 
like guessing).

Greetings,
Mark

On Thursday 04 January 2007 12:45, jgmaux wrote:
> Thanks,
>
> I have an alternative solution....
> (Sorry, my english language is very bad, because I 'am  from Spain..)
>
> Using java.awt.image.BufferedImage and related javax.imageio.ImageIO,
> java.awt.image.AffineTransformOp, etc.....
> public static BufferedImage scale(double scale, BufferedImage srcImg)
> {
>     if (scale == 1 )
>     {
>         return srcImg;
>     }
>     AffineTransformOp op = new
> AffineTransformOp(AffineTransform.getScaleInstance(scale, scale), null);
>     return op.filter(srcImg, null);
> }
>
> After scaled buffered image:
>
> java.awt.Image awt_image =
> Toolkit.getDefaultToolkit().createImage(buffered_image.getSource());
> com.lowagie.text.Image image = Image.getInstance(awt_image,null);
>
> crash!!!!!  I get an OuOfMemoryError:
>
> java.lang.OutOfMemoryError: Java heap space!!!!
>
> Note: original image size = 1Mb.
>
> ¿Any Bug (com.lowagie.text.Image Image.getInstance(java.awt.Image)?
>
>
> Thanks,
-- 
Q:      How many existentialists does it take to screw in a light bulb?
A:      Two.  One to screw it in and one to observe how the light bulb
        itself symbolizes a single incandescent beacon of subjective
        reality in a netherworld of endless absurdity reaching out toward a
        maudlin cosmos of nothingness.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgpQyy7pTdYo2.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to