On Mon, 3 Feb 2020 at 15:12, Eirik Bakke <[email protected]> wrote:

> Do you have HiDPI scaling activated? (Check "Scale and Layout" in the
> windows Display control panel.)
>
> To make things like this work well on HiDPI screens, it's best not to go
> through a BufferedImage, but rather draw directly on the supplied
> Graphics2D.
>
Hi Eirik,
Sorry if it wasn't clear - this is all about Scott Palmer's issue with the
HeapView widget - and the current code *does* go through a BufferedImage.

My gist was just confirming that there is a difference in the output of the
two methods (and I was hoping someone would know the 'magic' rendering
hints which would make them the same!)

I've made some mods which do improve things IMO, but these are drawing
directly on the Graphics2D. This means the blur effect of the current code,
using ConvolveOp, can't be done.

If I understand correctly you're saying that there's no easy way to get it
to work through BufferedImage? If so I can put in a pull request for my
'direct drawing' code.

Let me know what you think as I am not an expert in this.
Pete

Reply via email to