RE: [iText-questions] embedded image doesn't look good

2004-01-22 Thread Paulo Soares
Title: RE: [iText-questions] embedded image doesn't look good If it returns 0 then no dpi information is present in the file. The resolution you get from MS Photo editor it's just a default value it puts that matches the screen resolution. You can either arbitrate a value or scale

RE: [iText-questions] embedded image doesn't look good

2004-01-22 Thread Michael Korolyov
Title: RE: [iText-questions] embedded image doesn't look good Thanks for answer. But, so far it doesn’t work   Dpi returns  0, so no scalePercent. As result image is over scaled.   Any thing else I may try?   Best Regards. Michael.   -Original Message- From:

RE: [iText-questions] embedded image doesn't look good

2004-01-22 Thread Paulo Soares
Title: RE: [iText-questions] embedded image doesn't look good This code should work: Image img = Image.getInstance("my_image.png"); int dpi = img.getDpiX(); if (dpi > 0)     img.scalePercent(7200f / dpi); Note that many times the dpi stated in the file is just a n

RE: [iText-questions] embedded image doesn't look good

2004-01-22 Thread Michael Korolyov
Title: RE: [iText-questions] embedded image doesn't look good It’s in PNG format   Thank you.   Best Regards. Michael.   -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 7:00 AM To: Michael Korolyov; [EMAIL PROT

RE: [iText-questions] embedded image doesn't look good

2004-01-22 Thread Paulo Soares
Title: RE: [iText-questions] embedded image doesn't look good What's the format of your image (jpeg, png, etc)? Best Regards, Paulo Soares -Original Message- From:   Michael Korolyov [SMTP:[EMAIL PROTECTED] Sent:   Thursday, January 22, 2004 1:20 To: Paulo Soar

RE: [iText-questions] embedded image doesn't look good

2004-01-21 Thread Michael Korolyov
Sent: Saturday, January 17, 2004 7:55 AM To: Michael Korolyov; [EMAIL PROTECTED] Subject: Re: [iText-questions] embedded image doesn't look good That's a problem of scaling. See the tutorial for an explanation on image scaling and DPI. Best Regards, Paulo Soares - Original Mes

Re: [iText-questions] embedded image doesn't look good

2004-01-17 Thread Paulo Soares
That's a problem of scaling. See the tutorial for an explanation on image scaling and DPI. Best Regards, Paulo Soares - Original Message - From: "Michael Korolyov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 16, 2004 19:11 Subject: [iTex

[iText-questions] embedded image doesn't look good

2004-01-16 Thread Michael Korolyov
Hello,   In my code:     Image png = Image.getInstance(realPath +"/"+ getFileName());     png.setAlignment(Element.ALIGN_CENTER);     document.add(png);   As result in PDF this image is oversized and went out of page, where it has right size in pix