Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: acp32
  • Order by date
  1. acp32

    Effective update of Image->Canvas ?

    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...
  2. acp32

    Effective update of Image->Canvas ?

    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?
  3. acp32

    Effective update of Image->Canvas ?

    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...
  4. acp32

    Effective update of Image->Canvas ?

    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...
  5. acp32

    Interrupting loops

    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.
  6. acp32

    Use of vector statement within a class?

    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...

Part and Inventory Search

Back
Top