RE: text - rtl examples

2003-10-23 Thread rajesh
I am using j2sdk1.4.1_04, batik-1.5. that file displaying in the batik browser. I think we have to use jdk1.3.1 or later versions. See the attached file. Rajesh > Thanks for sticking with me on this, Thomas. That's a nuisance for me - I > can't go back to 1.3.1 for lots of reasons, but I could g

Re: out of memory

2003-10-23 Thread Thomas DeWeese
Hi Techno, This is pretty close, but I would use the getDefaultJPEGEncodeParam that takes a number of bands: jpegColorID = com.sun.image.codec.jpeg.JPEGDecodeParam.COLOR_ID_YCbCr; jpegEncodeParam = com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam (im.getSampleM

Re: Re: out of memory

2003-10-23 Thread techno info
hi thomas, correct if i am wrong,is this way i create???. /* jpegColorID = com.sun.image.codec.jpeg.JPEGDecodeParam.COLOR_ID_YCbCr; Raster tile00 = im.getTile(0, 0); jpegEncodeParam = com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam(

Re: out of memory

2003-10-23 Thread Thomas DeWeese
techno info wrote: i am facing with similar problem of memory outburst when i try to convert svg to jpg. i tried the solution mentioned by you earlier > to GVS.infact i am getting a null pointer exception. In the encode method of TIFFImageEncoder,it is calling encodeParam.getJPEGEncodeParam() t

out of memory

2003-10-23 Thread techno info
hi thomas, i am facing with similar problem of memory outburst when i try to convert svg to jpg. i tried the solution mentioned by you earlier to GVS.infact i am getting a null pointer exception. In the encode method of TIFFImageEncoder,it is calling encodeParam.getJPEGEncodeParam() to get the JP

Re: KEY_FORCE_TRANSPARENT_WHITE for transparency

2003-10-23 Thread Sunil Puri
Thanks for the help it resolved the issue. Now I can am getting a Transparent PNG image. Sunil Puri From: Thomas DeWeese <[EMAIL PROTECTED]> Reply-To: "Batik Users" <[EMAIL PROTECTED]> To: Batik Users <[EMAIL PROTECTED]> Subject: Re: KEY_FORCE_TRANSPARENT_WHITE for transparency Date: Wed, 22 Oct

RE: text - rtl examples

2003-10-23 Thread Chris Faulkner
Thanks for sticking with me on this, Thomas. That's a nuisance for me - I can't go back to 1.3.1 for lots of reasons, but I could go for a later version of 1.4. Does anyone else have any experience of this - does it work with other flavours of 1.4 ? Cheers Chris > -Original Message- > F

Re: text - rtl examples

2003-10-23 Thread Thomas DeWeese
Chris Faulkner wrote: Thanks for giving me the example. I added a white rectangle to it so that I could read the text ! The text remains "txet" (the adobe plugin gives "extt" !) when viewed but it should be "text". I rasterise with "java -jar batik-rasteriser.jar " and create the png. I am on bati

RE: text - rtl examples

2003-10-23 Thread Chris Faulkner
Thanks for giving me the example. I added a white rectangle to it so that I could read the text ! The text remains "txet" (the adobe plugin gives "extt" !) when viewed but it should be "text". I rasterise with "java -jar batik-rasteriser.jar " and create the png. I am on batik 1.5 with JDK 1.4.1_02

Re: outofmemory error in batik transcoder

2003-10-23 Thread Thomas DeWeese
GVS Srinivas wrote: hi, thanks a lot .i will try that now.but what is "img" and "sm" in (GraphicsUtil.wrap(img), sm) Look at the code in TiledImageTranscoder (I just cut part of the file to give you an idea of where I was talking about... cheers GVS -Original Message- From: Thomas DeWee

RE: outofmemory error in batik transcoder

2003-10-23 Thread GVS Srinivas
hi, thanks a lot .i will try that now.but what is "img" and "sm" in (GraphicsUtil.wrap(img), sm) cheers GVS -Original Message- From: Thomas DeWeese [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:30 PM To: Batik Users Subject: Re: outofmemory error in batik transcoder GVS S

Re: text - rtl examples

2003-10-23 Thread Thomas DeWeese
Hi Chris, Works for me: http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";> http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";> txet Chris Faulkner wrote: Hi I now have this but it still fails. txet Any ideas ? Thanks Chris -Original Mess

Re: outofmemory error in batik transcoder

2003-10-23 Thread Thomas DeWeese
GVS Srinivas wrote: hi, i am sorry if i conveyed that tiffencoding is not solving my problem.infact as mentioned in my earlier mail,i didnt quite get through how to encode the tiff image on the fly.i was not quite sure what to pass the argument for encoder.encode(). please guide me. here is the c

RE: text - rtl examples

2003-10-23 Thread Chris Faulkner
Hi I now have this but it still fails. txet Any ideas ? Thanks Chris > -Original Message- > From: Thomas DeWeese [mailto:[EMAIL PROTECTED] > Sent: 23 October 2003 12:28 > To: Batik Users > Subject: Re: text - rtl examples > > > Chris Faulkner wrote: > > > Hello > > > > I am tryi

RE: outofmemory error in batik transcoder

2003-10-23 Thread GVS Srinivas
hi, i am sorry if i conveyed that tiffencoding is not solving my problem.infact as mentioned in my earlier mail,i didnt quite get through how to encode the tiff image on the fly.i was not quite sure what to pass the argument for encoder.encode(). please guide me. here is the code.i am doing this i

Re: outofmemory error in batik transcoder

2003-10-23 Thread Thomas DeWeese
GVS Srinivas wrote: thanks for the suggestion of tiffencoding.i still didnt get through doing that. I am _very_ surprised that this didn't solve the problem if the default TiledImageTranscoder did work. one more suggestion.. there are some JPEGTranscoding hints like Key_Quality, KEY_PIXEL_TO_MM

Re: Convertion problem

2003-10-23 Thread Thomas DeWeese
[EMAIL PROTECTED] wrote: When i try to convert my svg file in to jpeg i am getting the error. I am not able to convert into jpg, Here i am giving that error. The Null Pointer Exception should be fixed in CVS (you can get one of the nightly CVS builds off Apache if you want). The NPE in this c

Re: text - rtl examples

2003-10-23 Thread Thomas DeWeese
Chris Faulkner wrote: Hello I am trying to get rtl-oriented text to work. I have batik 1.5 - in the readme it says that rtl text should work. Is there anything wrong with my example below ? You need to add set the "unicode-bidi" property to "bidi-override". My Text ---

RE: outofmemory error in batik transcoder

2003-10-23 Thread GVS Srinivas
hi, thanks for the suggestion of tiffencoding.i still didnt get through doing that. one more suggestion.. there are some JPEGTranscoding hints like Key_Quality, KEY_PIXEL_TO_MM.does the memory blowing up decrease by adjusting these values,please suggest. thanks a lot GVS -Original Message---

Convertion problem

2003-10-23 Thread rajesh
Hi, When i try to convert my svg file in to jpeg i am getting the error. I am not able to convert into jpg, Here i am giving that error. D:\batik-1.5>java -jar batik-rasterizer.jar test.svg -m image/jpeg About to transcode 1 SVG file(s) Converting *.svg to *.jpg ...java.lang.NullPointerExcepti