|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Clipboard Commands > Store/Restore > Clipboard Commands |
MiniRobotLanguage (MRL)
CLB.Clear Image Store
Clear all internally stored images.
Intention
The SPR system is designed to hold up to 10 images, sourced directly from the clipboard, across 10 distinct memory banks.
These banks are sequentially numbered from 0 to 9.
The system provides a command function which, depending on the input, can either remove a specific image or clear all images.
If a numerical value P1 is provided, the command will delete the image stored in the corresponding memory bank (0 to 9).
In contrast, if P1 is omitted, indicating no numerical input, the command will initiate a complete clearance of all images from all memory banks, thereby freeing up the memory space.
Additionally, it's vital to note the SPR's unique memory allocation system.
The memory banks designated for image storage are separate from those used for text storage.
This design allows for a dual-use scenario where text can be stored in a memory bank (e.g., memory bank 0 for text) and, simultaneously, an image can be stored in a different section, also labeled as memory bank 0. These are two distinct types of memory banks, each specialized for its type of content.
Syntax
CLB.Clear Image Store[|P1]
Parameter Explanation
P1 - (optional) Variable containing a number or number from 0 to 9. This is the number of the memory bank that is to be cleared.
If P1 is missing All memory banks are cleared.
Example
'***********************************
' CLB.-Sample
'***********************************
ANA.New|0|800|400
ANA.vgradient|0|&HFF00FF|&H000000
ANA.New|2|800|400
ANA.hgradient|2|&H0000FF|&H00FFFF
ANA.Mix|0|2|7
ANA.copy|2|1
ANA.Invert|1
CLB.Bitmap From Image Register|0
CLB.Store Image|0
ANA.Show|0!
CLB.Bitmap From Image Register|1
CLB.Store Image|1
ANA.Show|1!
CLB.Bitmap From Image Register|2
CLB.Store Image|2
ANA.Show|2!
CLB.Reset
CLB.Restore Image|2
CLB.Show Image
CLB.Restore Image|1
CLB.Show Image
CLB.Restore Image|0
CLB.Show Image
CLB.Clear Image Store|2
CLB.Reset
' Will not work because no more Image there
CLB.Restore Image|2
CLB.Show Image
ENR.
Remarks
-
Limitations:
-
See also:
•