Difference between revisions of "Image"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→Description) |
Yvonne.milne (Talk | contribs) (→Methods) |
||
Line 61: | Line 61: | ||
|valign="top"|Draw | |valign="top"|Draw | ||
|valign="top"|name as Character | operation as Character<br>[, operation as Character [, arguments as Character]] | |valign="top"|name as Character | operation as Character<br>[, operation as Character [, arguments as Character]] | ||
− | |valign="top"|Draw operations include the following: brush, clear, | + | |valign="top"|Draw operations include the following: brush, clear, ellipse, fill, font, image, lineto, moveto, pen, point, rectangle, redraw, restore, save.<br>See the ''Drawable Image App'' (example_drawable) included in the Lianja App Builder distribution for an example |
|- | |- | ||
|valign="top"|Zoom | |valign="top"|Zoom |
Revision as of 05:50, 31 October 2019
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Shown below in a standalone Form. Click the image to see in a Custom Section in a Lianja Page.
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, ellipse, fill, font, image, lineto, moveto, pen, point, rectangle, redraw, restore, save. See the Drawable Image App (example_drawable) included in the Lianja App Builder distribution for an example |
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 |
---|