Difference between revisions of "Image"

From Lianjapedia
Jump to: navigation, search
Line 24: Line 24:
 
|valign="top"|RW
 
|valign="top"|RW
 
|valign="top"|Numeric
 
|valign="top"|Numeric
|valign="top"|Mouse X position
+
|valign="top"|Mouse X position.  (From Lianja v3.1).
 
|-
 
|-
 
|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.  (From Lianja v3.1).
 
|-
 
|-
 
|Picture
 
|Picture
Line 51: Line 51:
 
!Args
 
!Args
 
!width="50%"|Description
 
!width="50%"|Description
 +
|-
 +
|valign="top"|Draw
 +
|valign="top"|name as Character | operation as Character [, operation as Character [, arguments as Character]]
 +
|valign="top"|Draw operations include the following: brush, clear, eclipse, fill, font, image, lineto, moveto, pen, point, rectangle, redraw, restore, save
 
|-
 
|-
 
|valign="top"|Zoom
 
|valign="top"|Zoom

Revision as of 10:33, 20 September 2016

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

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. (From Lianja v3.1).
MouseY RW Numeric Mouse Y position. (From Lianja v3.1).
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
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