Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | draw.ID.rotate.sourceID SEARCH    

  Functions
draw.ID.brushFrom.ID
draw.ID.copyFrom.ID
draw.ID.copyMode
draw.ID.ellipse
draw.ID.getPixel
draw.ID.height
draw.ID.isEgual.ID
draw.ID.line
draw.ID.load
draw.ID.paint
draw.ID.pixelFormat
draw.ID.polygon
draw.ID.rect
draw.ID.rotate.sourceID
draw.ID.save
draw.ID.setPixel
draw.ID.size
draw.ID.text.ex
draw.ID.text.ex.getWidth
draw.ID.width
draw.isEgual.X
draw.isEgual.Y
draw.mem.create
draw.mem.createFromFile
draw.mem.delete
draw.mem.exists
draw.mx.deform
draw.mx.effects

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
draw.ID.rotate.sourceID

Language: MioScript
Product: MioFactory


Syntax

draw.ID.rotate.sourceID(Orientation)


Parameters

INTOrientationIf 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()