double sy = h / wmfStore.getHeightPixels();
if (sx != 1.0 || sy != 1.0) {
g2d.scale(sx, sy);
}
WMFPainter painter = new WMFPainter(wmfStore, 1.0f);
long start = System.currentTimeMillis();
painter.paint(g2d);
if (log.isDebugEnabled()) {
long duration = System.currentTimeMillis() - start;
log.debug("Painting WMF took " + duration + " ms.");
}
}