public static java.awt.image.BufferedImage paintSVG(SVGDiagram diagram, double scale) throws SVGException {
BufferedImage bi = new BufferedImage(diagram);
- bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), 0);
+ bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), null, 0);
return bi.getBuffer();
}
public static java.awt.image.BufferedImage paintSVG(SVGDiagram diagram, AffineTransform transform, float margin) throws SVGException {
BufferedImage bi = new BufferedImage(diagram);
- bi.paintToBuffer(transform, margin);
+ bi.paintToBuffer(transform, null, margin);
return bi.getBuffer();
}
double xScale = (double)maxDimension / bounds.getWidth();
double yScale = (double)maxDimension / bounds.getHeight();
double scale = Math.min(xScale, yScale);
- bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), 0);
+ bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), null, 0);
return bi.getBuffer();
}