Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Save an image from GrabFrame() in any of several file formats, similar to the capability of the Image Save Options dialog in DevWareX. This function will use the ColorPipe() function to create RGB images for file formats requiring RGB. Set the file saving options and path with SetState() and SetStateStr() before calling this function. The following state settings will affect the files created. Adjust the values as desired:

SetState("Save RAW", 1)
SetState("Save HEX", 0)
SetState("Save ITX", 0)
SetState("Save CCR", 0)
SetState("Save DXR", 0)
SetState("Save RAW PNG", 0)
SetState("Save RAW JPEG", 0)
SetState("Save DNG", 0)
SetState("Save 24bpp BMP", 1)
SetState("Save PNG", 0)
SetState("Save 48bpp COLOR TIFF", 0)
SetState("Save JPEG", 0)
SetState("Save TXT", 1)
SetState("Save SS", 1)
SetState("Save Selection Rectangle", 0)
SetState("JPEG Quality (1-100)" 90)
SetState("Still Filename Increment", 0)
SetStateStr("Still File", path...)

Use LastError for the error code.

...