height: the allocated height in logical pixels. scale: the scale applied to the fitted drawing.
final double height, scale;