Quote:
Originally Posted by Glen
HSLImage *targetImage = new HSLImage("/testImage.png"); // create image
I am unsure as to what this is supposed to be doing, but it looks like this should save the image , right? What could be wrong?
|
This line attempts to open an image at that location, not save it. See here,
http://mmrambotics.ca/wpilib/class_h...8e2dd2 4383e6
You can use the ImageBase::Write function...
Code:
HSLImage *image = camera.GetImage();
image->Write("testImage.jpg");