D2D image vertical flip issue

Hey all,

I do a lot with vector based graphics. Below is one of those, which is oddly wrong on Windows when using Direct2D. On mac, or on Windows using openGL or the software rendering engine, it renders correctly (the lower image).

In this case, an image is created and then flipped to form the bottom half of the waveform you see.

For whatever reason, the vertical flip doesn’t seem to work when using D2D.

The relevant code is below:

   
g.drawImageWithin(turntableImage, 0, 0, getWidth(), getHeight()/2, RectanglePlacement::stretchToFit);

g.addTransform(AffineTransform::verticalFlip(getHeight() / 2).translated(0, getHeight() / 2)); 

g.drawImageWithin(turntableImage, 0, 0, getWidth(), getHeight() / 2, RectanglePlacement::stretchToFit);

      

I should mention, I am using the latest release build (8.0.12).

This is on our radar, I have a fix in progress at the moment.

1 Like

Thanks for reporting, a fix for this issue has been published:

1 Like