|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| draw.ID.rotate.sourceID(Orientation) |
Parameters
| INT | Orientation | If set to 0, the picture rotate to left If set to 1, the picture rotate to right |
Return value
No value is returned.
Description
Rotate 90 degres the image sourceID and copy it to ID.
This function is useful to change the orientation of a picture from landscape to portrait, or portait to landscape. |
MioScript Sample Code
// Load an image stored in the resources folder of the application
// and rotate it on the main window.
&myImage=loadImage("myimage.jpg")
draw.main.rotate.&myImage(1)
draw.main.paint() |
|
|
|