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

draw...

  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...

draw...

Language: MioScript
Product: MioFactory


This set of functions make it possible to create images in memory, write text and draw graphics, etc.

Images in memory


Each image can be retreived with an ID.

An image ID can be created with draw.mem.create or draw.mem.createFromFile.
See also: draw.mem.delete, draw.mem.exists

An image memory ID, used to manipulate bitmap images, is a number between -254 and -1.

A window ID can be used as an image ID: you can use a window ID with all the drawing functions.
When drawing is completed, call draw.ID.paint to apply the changes.

A window image ID is a number between 0 and 254.

Image Size


The size of the image can be read or set with draw.ID.size, draw.ID.width and draw.ID.height.
Image uses memory. Try to reduce the size of the images in memory when possible.

Colors


Colors in MioScript are numeric values.
To create a color from the Red, Green and Blue values, use num.rgb

Drawing Graphics


draw.ID.rect, draw.ID.ellipse, draw.ID.line, draw.ID.polygon
draw.ID.setPixel

Drawing Text


draw.ID.text.ex, draw.ID.text.ex.getWidth

Loading and saving graphics


draw.ID.load, draw.ID.save

Bitmap manipulation


draw.mx.deform, draw.mx.effects
draw.ID.copyFrom.ID, draw.ID.brushFrom.ID
draw.ID.rotate.sourceID

Advanced functions


draw.ID.pixelFormat, draw.ID.copyMode
draw.ID.getPixel, {link:DRAW_ID_ISEQUAL_X}, {link:DRAW_ID_ISEQUAL_Y}