<< Click to Display Table of Contents >> Navigation: 3. Script Language > Image/Pixel-Color Operations > Undercover and Graphics > Undercover Operations |
MiniRobotLanguage (MRL)
UCV.load image
UCV.ldi
Load a BMP-Picture as cover background
Intention
This command will load an bitmap file (BMP-file) onto the cover. The file will automatically be resized to fit the cover.
General usage is simple, if the picture is in ?path\, that is the folder, where the script itself is, you can just give the filename. Otherwise specify a complete path..
If you want to compile an executable, note that you have to include the picture file manually into the excutable using the
'#INC:?path\picture.bmp
command. There is currently no auto-include for images.
' this will load an image and show it with a fade-in effect
UCV.ldi|rubin.bmp
PAU.5
You can also use the image as background and modify it using the UCV.write or other UCV.-commands.
UCV.nbi
UCV.ldi|rubin.bmp
' Paint on the picture
UCV.fgr|&HFF0000
FOR.$$XCO|1|2600|6
UCV.drawto|1,$$XCO|2*$$XCO,$$XCO*2
UCV.drawto|$$XCO,1|1,$$XCO
NEX.
PAU.5
ENR.
Syntax
UCV.load image
UCV.ldi
Parameter Explanation
P1 - variable/filename of the image that should be loaded. The image will
automatically be re-sized to fit the entire cover.
Example
'***********************************
' UCV.-Sample
'
'***********************************
'
UCV.nb
UCV.bgr|&HFF0000
UCV.cov
PAU.10
UCV.
ENR.
'***********************************
' UCV.-Sample 2
'
'***********************************
'
' Make a completely red cover
UCV.bgr|&H0000FF
UCV.cov
' Here comes your script, we use a PAUSE command instead
PAU.5
' Switch cover color to yellow
UCV.bgr|&H00FFFF
' Print on the cover screen
UCV.print|Hello world
' This will remove the Cover
UCV.
ENR.
'***********************************
' UCV.-Sample 3
'
'***********************************
'
UCV.cover
PAU.5
UCV.mat
PAU.5
UCV.
ENR.
'***********************************
' UCV.-Sample 4
' Write a text into the cover'
'***********************************
'
UCV.nb
UCV.cover
UCV.set font|futura t|100|||0
UCV.write|Hallo world!|10,200
PAU.3
' This line will remove the cover
PAU.5
UCV.
ENR.
Remarks
-
Limitations:
PopUp-Menus and other TopMost Forms may be able to get temporarily in front of the Cover-form. This is due to windows-technical reasons and not a bug.
See also:
• ! Smart Package Robot 's Undercover Operations
• ! UCV. - Undercover Graphics