I get visible seams between image titles when setting a scaled image fill.
This does occur only with the default Mac renderer (Juce 7.0.11), not with openGL one or with any renderer on Windows.
This occurs when the scale factor multiplied by the image dimension is not an integer, or when additional scaling (eg resizing) is applied to the component.
class FillTest : public juce::Component {
public:
FillTest() {
//openGL.attachTo(*this);
image.clear(image.getBounds(), juce::Colours::black);
}
void paint(juce::Graphics& g) override {
g.fillAll(juce::Colours::white);
g.setFillType({ image, juce::AffineTransform().scaled(.1f) });
g.fillAll();
}
private:
juce::Image image { juce::Image::RGB, 1001, 1001, false };
juce::OpenGLContext openGL;
};
Here is what it looks like:
Looks like a bug to me: if rounding has to occur it should take pixels inside the image (like other renderer presumably) rather that leaving seems around tiles.