Search code examples
c#winformsanimationspinning

Spinning Image in Windows Forms (C#)


I'm working in a music player, where I want the album art of the current song to be spinning in a circular picture box, just a vynil turntable.

I already have the circular picturebox, I made one attempt to make it spin, but it is spinning roughly, it doesn't look smooth. So I don't know if I am using the wrong parameters or if something is wrong in my code.

Used code from here: Rotating image around center C#

Hope you can help. Thanks in advance.


Solution

  • WinForms graphical API is very limited and thats why the whole platform is obsolete. WPF is more capable for graphical presentation because there is a hardware acceleration and DirectX behind that. My opinion if you are creating entertaining solutions use at minimum WPF. If your aim is purely business then WinForms is more than enough.