As documented in #171, images instantiated with a fixed width/height, which are usually used as a canvas to manually draw an, are insufficient for multi-zoom scenarios, in which an image to be drawn on demand may be required in different sizes.
In #143, a new constructor for Image, taking an ImageGcDrawer, has been introduced to replace the implementation in above mentioned use cases with a dynamic generation of an image at the propert size.
This is a follow-up task consisting of the following steps:
- Replace all calls to
new Image(device, width, height) with a subsequent call to new GC(image) with a proper ImageGcDrawer
- Reprecate the Image constructor taking a device, width, and height.