Okay, so I’ll be as specific as I can while trying to maintain the secrecy of what I’m working on.
I’m drawing a vertical gradient, 1px wide with a variable height, but for the sake of this post we can set it at a static 20px.
It’s a vertical gradient, so stretching it sideways causes no defects, it’s a common technique on the web.
So on Mac, DrawPicture takes this gradient and stretches it sideways beautifully.
On Windows, it looks like DrawPicture is rotating it 90 degrees clockwise before stretching.
Unbelievable!
I’m hoping, so very much, that it’s my code.
[quote=261104:@William Yu]Tim,
Is GDI+ enabled and is GradientPicture an Alpha Picture (i.e. created without a bit depth)?[/quote]
Yes, GDI+ is on and the picture is created without a bit depth.
I do not use transparency in the picture though (if that’s useful data for you)
[quote=261102:@Norman Palardy]I’ve not seen it rotate on Windows
The IDE would be hugely impacted if this existed[/quote]
It’s a subtle gradient, it took me a few minutes to actually verify that it was sideways.
I’m sure my squinting face was quite comical >_>
[quote=261116:@Tim Parnell]Yes, GDI+ is on and the picture is created without a bit depth.
I do not use transparency in the picture though (if that’s useful data for you)
It’s a subtle gradient, it took me a few minutes to actually verify that it was sideways.
I’m sure my squinting face was quite comical >_>[/quote]
Ah yes, I believe it’s related to this case <https://xojo.com/issue/43220>. Unfortunately this fix did not make it into 2016r1.