What's the best way to use Graphics to draw into an offscreen Image and be able to get the extact same rendering on multi dpi screens?
For now I have to manually oversample the image according to the scale parameter reported by the Display class. But everything has to be scaled too (width, height, fontHeight, lineWidth...) and this is quite error prone.
Is there a simpler way to do it? After all that's exactly what the Graphics class does for when drawing directly to the screen, the code using it doesn't have to be aware of the scale factor.