I’m drawing a graph with a complex gradient pattern using a neat trick: it’s simply a 2xN image in memory that I draw with a transform to the correct bounds I want, using Graphics::drawImageTransformed()
. That way I get the smooth gradients I want through the interpolation when drawing the image.
Curiously, I found cases where the interpolation isn’t smooth and I get much lower resolution in the result. This happens (so far) in ProTools on macOS (not on Windows), and when I screenshot the editor component using `Component::createComponentSnapshot().
Here’s what it’s supposed to look like:
And here’s what I get in ProTools and in screenshot images.
The underlying image here is just 2 pixels in width, many pixels in height.
I’ve tried explicitly setting interpolation quality to high, but that doesn’t change anything.
This is with latest-ish JUCE 7, haven’t tried JUCE8 yet.
Any idea what could be different with the drawing in ProTools or when making snapshots?