Difference between revisions of "Image"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
+ | |||
+ | ====Description==== | ||
+ | [[{{ns:file}}:image.png|link={{filepath:image.png}}|Image]] | ||
+ | |||
+ | Image is a control for displaying images. | ||
====Properties==== | ====Properties==== | ||
Line 24: | Line 29: | ||
|valign="top"|RW | |valign="top"|RW | ||
|valign="top"|Numeric | |valign="top"|Numeric | ||
− | |valign="top"|Mouse X position | + | |valign="top"|Mouse X position. |
|- | |- | ||
|valign="top"|MouseY | |valign="top"|MouseY | ||
|valign="top"|RW | |valign="top"|RW | ||
|valign="top"|Numeric | |valign="top"|Numeric | ||
− | |valign="top"|Mouse Y position | + | |valign="top"|Mouse Y position. |
|- | |- | ||
|Picture | |Picture |
Revision as of 11:37, 29 March 2018
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Image is a control for displaying images.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Closable | RW | Boolean | Whether image should be closable |
HeightForWidth | RW | Boolean | Whether height of image should be based on width |
MouseX | RW | Numeric | Mouse X position. |
MouseY | RW | Numeric | Mouse Y position. |
Picture | RW | Character | Filename of image displayed |
Stretch | RW | Boolean | Whether image will scale its contents to fill all available space. 0 = do not scale/stretch, <>0 = scale/stretch. |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
Draw | name as Character | operation as Character [, operation as Character [, arguments as Character]] |
Draw operations include the following: brush, clear, eclipse, fill, font, image, lineto, moveto, pen, point, rectangle, redraw, restore, save. (From Lianja v3.1). |
Zoom | width as Numeric, height as Numeric, closable as Boolean | Zoom the image to the specified size and with specified Closable setting |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|