RE: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
Afraid not :( A higher scale factor creates a bigger BufferedImage.The end result is a larger 72 dpi tiff. Ronald PS (Sorry , I replied to the wrong email earlier) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 8:59 AM To: [EMAIL PROTECTED] Subject: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1? Hi Oleg, Francis, I was just now looking though the code of AWTRenderer and found the method AWTRenderer.setScaleFactor(). Invoking setScaleFactor(200) on the TIFFRenderer before rendering gives me a TIFF with higher (probably double) resolution. This is all I need. Were you guys aware of this method? Is there any problem with this? cheers Reto ___ CSS Versicherung Reto Blunschi EXTERNE Rösslimattstrasse 40 CH-6002 Luzern Telefon ++41 (0)41 369 1236 Telefax ++41 (0)41 369 1212 [EMAIL PROTECTED] www.css.ch Oleg Tkachenko <[EMAIL PROTECTED]> on 18.12.2002 13:59:53 Bitte antworten an [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: Thema: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1? Francis, Ronald wrote: > I've looked at the code in the AWTRenderer where a BufferedImage is created > to paint the "page" on(defaults to 72 dpi) That is addressed by the redesign under way. > 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. Me too unfortunately :( Is there any java2D expert around? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
Hi Oleg, Francis, I was just now looking though the code of AWTRenderer and found the method AWTRenderer.setScaleFactor(). Invoking setScaleFactor(200) on the TIFFRenderer before rendering gives me a TIFF with higher (probably double) resolution. This is all I need. Were you guys aware of this method? Is there any problem with this? cheers Reto ___ CSS Versicherung Reto Blunschi EXTERNE Rösslimattstrasse 40 CH-6002 Luzern Telefon ++41 (0)41 369 1236 Telefax ++41 (0)41 369 1212 [EMAIL PROTECTED] www.css.ch Oleg Tkachenko <[EMAIL PROTECTED]> on 18.12.2002 13:59:53 Bitte antworten an [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: Thema: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1? Francis, Ronald wrote: > I've looked at the code in the AWTRenderer where a BufferedImage is created > to paint the "page" on(defaults to 72 dpi) That is addressed by the redesign under way. > 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. Me too unfortunately :( Is there any java2D expert around? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
Francis, Ronald wrote: I've looked at the code in the AWTRenderer where a BufferedImage is created to paint the "page" on(defaults to 72 dpi) That is addressed by the redesign under way. 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. Me too unfortunately :( Is there any java2D expert around? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
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]
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]
RE: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
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 eXperanto team Multiconn Technologies, Israel - 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]