This feels like it should be much easier to do than it is, but I've researched every link I could find and nothing works.
I'm trying to make an application for digital drawing. It floats above photoshop and appears with the middle click and gives me easy access to shortcuts, so it needs to be able to rotate 90 degrees for when I using my tablet landscape vs portrait.
The closest I got used bitmaps but of course then I can't press the buttons. Nothing using OnPaint
and e.Graphics.Rotate
and Matrix
s have worked but I"m not sure if they were even supposed to work in this instance.
Apparently this is easy to do in WPF but I'm not going to rebuild it again for what would be the 4th time. If there is no way to cleanly rotate it (for some silly reason) then I'll probably just have to make an algorithm for switching the button functions and images and rotating them, or just duplicating the form and making rotated icons. Either way it's a big pain for what feels like what should be a base functionality.