The Invert Colors option in the menu bar currently takes a lot of time to give an output (especially on larger screens). Because of this, the application gives the user an illusion that it has frozen and the user might quit the application, losing his/her progress.
A suggestion to this would be using the flood fill algorithm which is already being used in the fill bucket feature.
Here's a simple implementation of the algorithm.
The Invert Colors option in the menu bar currently takes a lot of time to give an output (especially on larger screens). Because of this, the application gives the user an illusion that it has frozen and the user might quit the application, losing his/her progress.
A suggestion to this would be using the flood fill algorithm which is already being used in the fill bucket feature.
Here's a simple implementation of the algorithm.