...
...
...
...
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Object Creation: The image widget area is generated using an roRectangle object.
Code Block |
---|
rectangle = CreateObject("roRectangle", 0, 0, 1024, 768) i = CreateObject("roImageWidget", rectangle) |
ifImageControl
DisplayFile(image_filename As String) As Boolean
...
Code Block |
---|
i=CreateObject("roImageWidget") a=CreateObject("roAssociativeArray") a["Filename"] = "test.jpg" a["Mode"] = 1 a["Transition"] = 14 a["MultiscreenWidth"] = 3 a["MultiscreenHeight"] = 2 a["MultiscreenX"] = 0 a["MultiscreenY"] = 0 i.PreloadFile(a) i.DisplayPreload |
The filename
, mode
, and transition
values are the same as those documented for the DisplayFile()
and PreloadFile()
methods above. The MultiscreenWidth
and MultiscreenHeight
parameters specify the width and height of the multi-screen matrix. For example, 3x2 would be three screens wide and two screens high. The MultiscreenX
and MultiscreenY
specify the position of the current screen within that matrix.
...
- Mode = 0
- Transition = 0
- MultiscreenWidth = 1
- MultiscreenHeight = 1
- MultiscreenX = 0
- MultiscreenY = 0
...
This code uses DisplayFile()
to display a portion of an image:
...