|
|
|
|
draw... Functions
MioScript Reference
|
|
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}
|
|
|