DeleteAllImages will completely delete all images that are in use from memory.
FACTS:
* Once an image has been deleted, there is no way to retrieve it.
* See DeleteImage to remove individual images
Mini Tutorial:
A small example to create 10 images between Image Indexes 1 and 10, then delete all of them.
; Create 10 images of random size. For ThisImg=1 To 10 CreateImage ThisIMG,RndRange(10,100),RndRange(10,100) Next ; Display the Status of each image. A 1 means this image is in use, a zero means it's free to be used Print "The Status of Images 1 to 10:" For ThisImg=1 To 10 Print "Image:"+Str$(ThisImg)+" Status:"+Str$(GetImageStatus(ThisImg)) Next ThisIMG ; Delete ALL of the newly created Images DeleteAllImages Print "The Status of Images 1 to 10 after ALL Images have been deleted:" For ThisImg=1 To 10 Print "Image:"+Str$(ThisImg)+" Status:"+Str$(GetImageStatus(ThisImg)) Next ThisIMG ; Display the Screen and wait for the user to press a key Sync WaitKey |
This example would output. The Status of Images 1 To 10: Image:1 Status:1 Image:2 Status:1 Image:3 Status:1 Image:4 Status:1 Image:5 Status:1 Image:6 Status:1 Image:7 Status:1 Image:8 Status:1 Image:9 Status:1 Image:10 Status:1 The Status of Images 1 To 10 after ALL Images have been deleted: Image:1 Status:0 Image:2 Status:0 Image:3 Status:0 Image:4 Status:0 Image:5 Status:0 Image:6 Status:0 Image:7 Status:0 Image:8 Status:0 Image:9 Status:0 Image:10 Status:0 |
|