- Jun 27, 2002
- 2,908
- 0
- 76
This is for data analysis for scientific research. I know VB isn't the best choice for such things, but I have my reasons.
I have a couple of images. I have a small algorithm that, pixel by pixel, performs a calculation based on these two images to produce a third image. The code is slow because it draws the entire operation as it happens.
Right now, I'm using three picturebox controls, and I'm calling the points with Point and Pset for reading and writing, respectively. The images are copied over between various sources by copying the Image property, using LoadImage, and by using SaveImage.
How do you work with the Image data type that VB gives you? Is there a way to load an image in RAM, manipulate it pixel-by-pixel, and then write it back to a file without ever consuming resources with the GUI?
Thanks.
I have a couple of images. I have a small algorithm that, pixel by pixel, performs a calculation based on these two images to produce a third image. The code is slow because it draws the entire operation as it happens.
Right now, I'm using three picturebox controls, and I'm calling the points with Point and Pset for reading and writing, respectively. The images are copied over between various sources by copying the Image property, using LoadImage, and by using SaveImage.
How do you work with the Image data type that VB gives you? Is there a way to load an image in RAM, manipulate it pixel-by-pixel, and then write it back to a file without ever consuming resources with the GUI?
Thanks.