Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | image |
delete | in | Delete disk file as well ? | |
Allowed: | T or F | ||
Default: | F |
If you no longer need to use an image tool, calling this function will free up its resources. That is, it destroys the tool. You can no longer call any functions on the tool after it has been done.
If the Image tool is associated with a disk file, you can also delete that if you wish by setting delete=T. By default any associated disk file is not deleted.
This function is different from the close function because the latter does not destroy the image tool. For example, you can use function open straight after close on the same tool.
- im := imagemaketestimage() - im.done() - im.open('myfile') # Error: tool `im' has been destroyed