Re: Raster image size generated by Transcoder API

2002-02-19 Thread Vincent Hardy
Kenji, Following on Thomas's comment, yes, you can use the setSVGCanvasSize method on SVGGraphics2D and the rasterizer will use it. However, this will only set the width and height attributes. If you'd like to set the viewBox and preserveAspectRatio attributes, you'll have to get the root from

RE: Raster image size generated by Transcoder API

2002-02-13 Thread Thomas E Deweese
> "KN" == Kenji Nakamura <[EMAIL PROTECTED]> writes: KN> Sorry for self response... >> > KN> Do I overlook something? >> > >> > I suspect you need to add the viewBox attribute on your outermost >> > SVG element. KN> I added viewBox attribute="0 0 675 554" by hand, but the result KN> didn't

RE: Raster image size generated by Transcoder API

2002-02-13 Thread Kenji Nakamura
> Hmm, try calling: > > SVGGraphics2D.setCanvaseSize(new Dimension(600,800)); > > This will set the width and height attributes on the outermost > SVG. Which I think the rasterizer will use. > > Vincent may be able to answer this question better than I tomorrow > (as he di

RE: Raster image size generated by Transcoder API

2002-02-13 Thread Thomas E Deweese
> "KN" == Kenji Nakamura <[EMAIL PROTECTED]> writes: KN> First I take a screenshot and supposed the size is 800x600 pixels. >> I guess I don't understand where the screenshot comes in, above it >> sounded like you were using the SVGGraphics2D to convert the >> contents of your JInternalFrame

RE: Raster image size generated by Transcoder API

2002-02-13 Thread Kenji Nakamura
Sorry for self response... > > KN> Do I overlook something? > > > > I suspect you need to add the viewBox attribute on your > outermost > > SVG element. I added viewBox attribute="0 0 675 554" by hand, but the result didn't change. (I'm not sure the syntax is correct, though). I also added

RE: Raster image size generated by Transcoder API

2002-02-13 Thread Kenji Nakamura
> KN> First I take a screenshot and supposed the size is 800x600 > KN> pixels. > > I guess I don't understand where the screenshot comes in, above it > sounded like you were using the SVGGraphics2D to convert the contents > of your JInternalFrame to SVG. Yes, I use SVGGraphics2D to generate

Raster image size generated by Transcoder API

2002-02-13 Thread Thomas E Deweese
> "KN" == Kenji Nakamura <[EMAIL PROTECTED]> writes: KN> I'm writing SVG-->Raster images converter servlet and encountered KN> a problem. What I want to do is to take a snapshot of a Swing KN> application JInternalFrame, highlight some portion of the diagram KN> by modifying SVG through DOM,

Raster image size generated by Transcoder API

2002-02-13 Thread Kenji Nakamura
Hi, I'm writing SVG-->Raster images converter servlet and encountered a problem. What I want to do is to take a snapshot of a Swing application JInternalFrame, highlight some portion of the diagram by modifying SVG through DOM, and convert it to raster images such as PNG or JPEG to show users wh