1
Plugins / Re: MusicBee-UserCosmetics
« on: December 08, 2021, 05:01:54 PM »Just regarding locking up the GUI thread, can you not load the image file in a background thread, so only the rendering is done in the GUI thread? You could run ImageHandler() in a background thread and then invoke to the GUI thread when you assign the image to the _pfp image (using Form.FromHandle(api.MB_GetWindowHandle()) to get an object to invoke to)
Having a quick look at the code, I also recommend you also dispose the image parameter at the end of the Resize() function
Would you recommend BackgroundWorker class to achieve this? I attempted to make ImageHandler() async right before I released this and it was a disaster.
Also, disposing of the image parameter is an amazing catch, thank you very much.