Search found 2 matches
- Mon Jun 16, 2014 5:08 pm
- Forum: JFreeSVG
- Topic: CanvasGraphics2D setTransform
- Replies: 3
- Views: 61498
Re: CanvasGraphics2D setTransform
What I was hoping to do was to generate one SVG script, and then draw the graphic twice, once as a thumbnail, and then if this thumbnail was clicked to draw a full scale plot. The SVG files are quite large, and so creating two size versions would be inefficient.
- Wed Apr 30, 2014 4:57 pm
- Forum: JFreeSVG
- Topic: CanvasGraphics2D setTransform
- Replies: 3
- Views: 61498
CanvasGraphics2D setTransform
The script produced by CanvasGraphics2D uses " setTransform ". This seems to make it impossible to use the " ctx.scale() " method to easily dynamically scale a graphic. If you try this, only a some of the graphic is scaled, but after the absolute " setTranform() " method call , " scale() " gets rese...