I am looking for a method of updating an Image rapidly from data stored in a 2D matrix. I currently use the following code for each pixel:
Image1->Canvas->Pixels[x][y] = greyscale;
My image is a 512x512 array so the above line is part of an embedded for loop that iterates 262,144 times to...
A general query.
If I have a button in the GUI that starts off a loop. Is there an elegant method of a second button in the GUI stopping the first loop while it is running.
At the moment I can't click on any other buttons while the loop is tied up.
Any suggestions would be gratefully received.
My problem is that I cannot use the vector statement within a class. I would be grateful for any help.
To illustrate the problem:
If I open an application and generate a State class in the .h file as:
class State
{
};
After #include <vector> & using namespace std; are inserted I can use...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.