|Download Help (Windows Only)|
Owning Class: support
Requires: MathScript RT Module
fwrite_image(data, fname, ftype)
Writes data to an image file. The image size cannot exceed 4 megapixels.
|data||Specifies a matrix of real numbers that represent the image content.|
|fname||Specifies the filename. fname is a string.|
|ftype||Specifies the file type. ftype is a string that accepts the following values.
If you use this function in a stand-alone application or shared library and fname is a relative path, LabVIEW searches for the file in the path where you installed the application or shared library. If fname is an absolute path, LabVIEW searches for the file on the local machine or target at the specified location. (Real-Time Module) If you deploy this function to an RT target and fname is a relative path, LabVIEW searches for the file in the path returned by the Default Data Directory VI.
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||No (affects entire script)|
z = peakfcn2d(30);
fwrite_image(z, '/images/reference/en-XX/help/373123B-01/imagetest.bmp', 'BMP');
z1 = fread_image('/images/reference/en-XX/help/373123B-01/imagetest.bmp', 'BMP');