Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | draw.ID.paint 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.paint

Language: MioScript
Product: MioFactory


Syntax

draw.ID.paint(X, Y, Width, Height, X, Y, Width, Height)


Parameters

INTX, Y, Width, HeightOptional.
Area to paint.
INTX, Y, Width, HeightOptional.
Target area to paint.
Advanced Use: may help when creating visual effects.


Return value

No value is returned.


Description

Paint the specified bitmap of a window.
The provided ID must be the ID of a window (main or a valid window ID)

Each window have an internal copy of the image.
All you use any drawing function on a window ID, the cache image is used.

When all graphic operations are completed for the window, call draw.ID.paint to copy the bitmap in cache to the window itself.




MioScript Sample Code

draw.main.line(50, 50, 200 ,200, 4, num.rgb(0,100,255))

draw.main.paint()