|
updateIm
|
|
|
|
| Image
|
|
|
| An integer between 1 and 99 specifying the image frame number for which the update will be turned off or on.
|
|
|
| Update
|
|
|
| A boolean integer specifying the update mode. Must be one of the following values:
|
|
|
| FALSE turns off the automatic update. The changes done to the image will not be displayed.
|
| TRUE updates the image and turns on the automatic update of the image.
|
|
|
| ERR_OK
|
|
|
| The flag set if successful.
|
|
|
| ERR_FAILED
|
|
|
| The flag set if failed.
|
|
|
| This set of statements disables the automatic update of a sample image, applies a series of paintbrush strokes to it and updates the image in the end:
|
|
|
| setCurDir("samples")
|
| loadIm (1,"sample14.iwd")
|
| updateIm (1,FALSE)
|
| drawBrush(1, 131, 264)
|
| drawBrush(1, 134, 264)
|
| drawBrush(1, 137, 263)
|
| drawBrush(1, 140, 261)
|
| drawBrush(1, 143, 260)
|
| drawBrush(1, 146, 259)
|
| drawBrush(1, 148, 257)
|
| drawBrush(1, 151, 255)
|
| drawBrush(1, 154, 254)
|
| drawBrush(1, 156, 253)
|
| updateIm (1,TRUE)
|