 |
|
BaselScript |
Beschreibung
Draw image
draw tile=image .... Parameterliste
Parameter:
x1 = x_koordinate
y1 = y_koordinate
name = Feldname
image = Dateiname
directory= Verzeichnis
scale = wert (Standardeinstellung = 1)
width = wert (Standardeinstellung Breite des Bildes)
height = value (Standardeinstellung Höhe des Bildes)
transparent = (0-100)
section=name (Diese Sektion wird durch Klicken auf das Bild aufgerufen - Bild als Button).
Beispiel:
scene=1 name="Draw image" bgcolor=#ffffff mode =graphic
section init
clear canvas
draw tile=image x1=50 y1=15 name = #im0 image=2.png scale= 1 directory = /APPDIR/images/examples
draw tile=image x1=200 y1=95 name = #im1 image=2.png scale=0.8 directory = /APPDIR/images/examples
draw tile=image x1=400 y1=210 name = #im2 image=2.png scale=0.5 directory = /APPDIR/images/examples
draw tile=image x1=280 y1=290 name = #im3 image=2.png scale=0.3 directory = /APPDIR/images/examples
draw tile=image x1=520 y1=290 name = #im4 image=2.png width=130 height=150 directory = /APPDIR/images/examples
draw canvas
end scene