|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Clipboard Commands > Managing Bitmaps > Clipboard Commands |
MiniRobotLanguage (MRL)
CLB.Bitmap To Image Register
Transfer Image from Clipboard into IR
Intention
This command will copy any picture that is in the Windows-Clipboard into the Image-Register that is specified using P1.
Tecchnically this is identical to "ANA.FromClipboard".
It is the Opposite Command to "CLB.Set Bitmap" or "Ana.ToClipboard".
Syntax
CLB.Bitmap To Image Register[|P1]
Parameter Explanation
P1 - opt. Image-Register number, if omitted, IR 0 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
Use "CLB.Get Bitmap" to store Clipboard-Content in IR 0 and display it
This will use IR 0 and also show the Contents.
' We need this to copy a Image into Clipboard
ANA.New|0|800|400
ANA.vgradient|0|&HFF00FF|&H000000
CLB.Bitmap From Image Register|0
CLB.Bitmap To Image Register|1
ANA.Show|1
ANA.ToVar|1|$$IRA
ANA.Invert|1
ANA.Show|1!
CLB.Bitmap From Image Register|1
CLB.Shop
ENR.
Remarks
-
Limitations:
-
See also:
•