You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IMAGE statement provides access to extended support for image manipulation. There are two supported image formats: PNG and XPM (see below).
5
+
The IMAGE statement provides access to extended support for image manipulation. There are two supported image formats: PNG and XPM. An optional scale factor `scale` can be provided. `scale` must be larger than zero. Values smaller than `1` will result in a down-scaling of the image. Values larger than `1` will upscale the image.
6
+
7
+
`handle` can be:
8
+
9
+
- File name
10
+
- File handle
11
+
- URL (http)
12
+
- Image variable
13
+
- Array
14
+
- Pixmap array
6
15
7
16
### Image access
8
17
@@ -104,6 +113,15 @@ im << "@@@@@@@@@@@@@@@@"
104
113
i = Image(im)
105
114
```
106
115
116
+
Create via file name and scale
117
+
118
+
```
119
+
i1 = Image("circle.png", 2) ' scale up by factor 2
120
+
i1.show(0,0)
121
+
i2 = Image("circle.png", 1/2) ' scale down by factor 2
122
+
i2.show(0,0)
123
+
```
124
+
107
125
### Show command
108
126
109
127
zIndex controls whether the image will be displayed over or under another image. Images with higher zIndex values are drawn over the top of images with lower zIndex values. Opacity controls whether to display the image as solid or semi-transparent. Opacity values range from 1-100, with higher opacity values making the image less transparent. The default is 100 resulting in a solid image. When calling the show command a second time with new coordinates, the image will move to the new position.
0 commit comments