<< Click to Display Table of Contents >> Navigation: 3. Script Language > Image/Pixel-Color Operations > ANA. - Imageworks > Load/Save-Import/Export IR's > Image/Pixel-Color Operations |
MiniRobotLanguage (MRL)
ANA.Save
Save an Image-Register (IR) to diskfile
Intention
This command will save an specified IR to a diskfile.
It is the counterpart to "ANA.Load".
This will Save IR 0 and Load it back into IR 1.
ANA.New|0|640|400
ANA.vgradient|0|&HFF1010|&H10FFFF
ANA.show|0
VAF.$$FIL=?path\Myfilename.png
' This will Save IR 0 to $$FIL
ANA.Save|0|$$FIL
'LEN.$$CON|$$LEN
' We wil lLoad it back into IR 1
ANA.Load|1|$$FIL
' We display the IR 1
ANA.invert|1
ANA.show|1!
ENR.
You can omit the Parameters then Filename will be "?exeloc\BM_0.bmp".
If you specify the IR-Number ANA.Save|4, then the Filename will be "?exeloc\BM_4.bmp"
The ANA.Save supports these File-Extensions:
•BMP
•EMF
•JPG or JPEG
•GIF
•ICO
•PNG
•TIF or TIFF
•WMF
Syntax
ANA.Save[|P1][|P2]
Parameter Explanation
P1 - opt. Image-Register number, if omitted, IR 0 will be used.
P2 - opt. File-Path and Filename, if omitted "?exeloc\BM_(IR-Number).bmp" will be used.
The Command will leave a 0/1 on the TOS. As always, a 0 means Error, while a 1 means "all fine".
Example
'***********************************
' ANA.Save/Load-Sample
'***********************************
ANA.New|0|640|400
ANA.vgradient|0|&HFF1010|&H10FFFF
ANA.show|0
' This will Save IR 0 to $$FIL
ANA.Save
VAF.$$FIL=?exeloc\BM_0.bmp
' We wil lLoad it back into IR 1
ANA.Load|1|$$FIL
' We display the IR 1
ANA.invert|1
ANA.show|1!
ENR.
Here you can see a part of the result of the Operation.
Remarks
-
Limitations:
-
See also:
•