Thanks for your suggestions. I've got it working. Here is the essential code.
//Define parameters
TMemoryStream* Bitmap = new TMemoryStream();
unsigned char header[54];
unsigned char cameradata[262144];
unsigned char imagebtmp[786432];
//Create header & test data
//The header is 54 bytes long...
I don't think ScanLine will help me.
If there was a function that allowed me to write a line at a time that would certainly help.
The image I want to get onto the canvas is not in a bitmap format. I don't know if there is any benefit in converting the data into a bitmap first and loading that?
The data source is a CCD camera, which generates a stream of 262144 data values. This is to cover a 512x512 pixel source. I'm trying to view the camera image on the GUI as fast as possible.
I've created an Image1 on the GUI (width 512,height 512).
I update the image pixel by pixel using the...
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.