
74
roImageWidget
This object can be used in place of roImagePlayer in cases where the image is displayed within a rectangle. Using a
roImageWidget can result in more pleasing aesthetics for image player creation. Beyond this, roImageWidget behaves
identically to roImagePlayer.
Object Creation: The image widget area is generated using an roRectangle object.
rectangle = CreateObject("roRectangle", 0, 0, 1024, 768)
i = CreateObject("roImageWidget", rectangle)
Interfaces: ifImageControl
See roImagePlayer for a description of ifImageControl and its attendant methods.
This object includes overloaded PreloadFile() and DisplayFile() methods. These methods receive
an roAssociativeArray object that stores various options to be passed. They must be used when displaying images across
multiple screens in an array, or displaying a portion of an image—though they can also be used in place of the original
method calls.
Example: This code uses PreloadFile() method for a multiscreen display:
i=CreateObject("roImageWidget")
a=CreateObject("roAssociativeArray")
a["Filename"] = "test.jpg"
a["Mode"] = 1
a["Transition"] = 14
Comentarios a estos manuales