Thanks Clay, but unfortunately the problem here is different. 
This is what I think is happening, Oleg could probably correct me if I'm
wrong:

The TIFFRenderer, which is a subclass of the AWTRenderer works by first
rendering the entire fo page (not just images embedded /referenced in the
page) but the whole page into an Image.This image is then encoded into TIFF.
The problem is that java creates a Buffered Image  with a resolution of
72dpi, so the page is already poor in resolution by the time it gets to the
TIFFEncoder.

What I'm looking for is a way to create an Image (Buffered, Rendered..)
where we can specify the resolution.

I'm not very familiar with the Java2D API ,so if anybody out there knows how
to, please let me know.

Thanks,
Ronald

  

-----Original Message-----
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: RE: Antwort: Which TIFF format is used in batik? How can I get
TI FF Type 1?


Ronald and the rest of you cool cats,

I was having a similar problem: when I'd print the logo for my company (a 
JPG), it would come out pixelated when printed. The way I resolved the 
issue, was to use *HI-RES* JPG images. Instead of using a 72-dpi JPG image, 
I used a 300dpi JPG image, and it came out clean and crisp. I don't know if 
this was a factor as well, but I believe I also placed the image in a 
table-cell which scaled the image 50%. BTW, I couldn't see changes when I 
modified the content-width & height (it didn't seem to have any effect).

I don't know if this'll help you, but it worked for me!

Web Maestro Clay

At 06:28 AM 12/17/2002, you wrote:
>I've looked at the code in the AWTRenderer where a BufferedImage is created
>to paint the "page" on(defaults to 72 dpi)
>Out of curiosity, how can we create a high res image / graphics context ?
>I would be happy to tinker with the code and post any solutions if I find
>any , but I am not very familiar with 2D.
>Thanks,
>Ronald
>
>-----Original Message-----
>From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 17, 2002 7:10 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Antwort: Which TIFF format is used in batik? How can I get
>TIFF Type 1?
>
>[EMAIL PROTECTED] wrote:
> > I am using the special renderer from Oleg to produce the TIFFs. You can
> > find it at
> >
> > http://www.tkachenko.com/fop/tiffrenderer.html
> >
> > It produces several of the formats you asked for and works nicely. The
>only
> > problem I have is that I cannot change the resolution, it defaults to 72
> > dpi, which is not enough for my application.
>I'm afraid that's FOP's restriction at the moment.
>
>--
>Oleg Tkachenko

- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to