Mus1
May 28th, 2010, 09:28 AM
I want to draw an image on a window and change every single pixel one at a time.
The general alteration of the image works fine, but i can't update the image on the window after updating a single pixel.
I am using g_timeout_add() to call the function that changes the pixels once.
In the loop that iterates through every pixel i call gtk_main_iteration() to update my window.
That does not work.
What is the best approach to solve a problem like this?
The general alteration of the image works fine, but i can't update the image on the window after updating a single pixel.
I am using g_timeout_add() to call the function that changes the pixels once.
In the loop that iterates through every pixel i call gtk_main_iteration() to update my window.
That does not work.
What is the best approach to solve a problem like this?