Writes 24-bitimage data to a file.
imgarr The 3D byte array from which the 24-bit image data is transferred. Either the first or last dimension of imgarr must be 3; see the Discussion section for more details.
NOTE: Only one 24-bit image can be stored at a time when using the DC_WRITE_24_BIT function.
hi_glow
is a 400-by-400-by-3 byte array containing 24-bit image data, the function call:
status = DC_WRITE_24_BIT('hi_glow.img', hi_glow, Org=1)
hi_glow.img
and uses it to store the image data contained in the variable hi_glow
, using image interleaving. The file that is created contains raw binary data, and is easily read with the function DC_READ_24_BIT.
See the PV-WAVE Programmer's Guide for or more information about 24-bit (binary) data.
Windows Users: For an example showing how to use DC_WRITE_FREE to export data from PV-WAVE into a Microsoft® Excel spreadsheet, see the PV-WAVE Programmer's Guide.