DeleteImage
DeleteImage ImageNumber
 
Parameters:

    ImageNumber = The Number of the image you wish to delete
Returns: NONE
 

DeleteImage will free the memory used by an image back to PlayBASIC / windows.



FACTS:


* Attempting to delete an Image that is not currently in use, will produce a runtime error. See GetImageStatus

* Once an image has been deleted, there is no way to retrieve it.



Mini Tutorial:


A small example to Create and Delete an image...

  
  
; Create Image number #1 of size 500x by 600y pixels
  CreateImage 1,500,600
  
; Display the status of this image number
; (is there an image loaded into number or not ? 0=no, 1=yes)
  Print GetImageStatus(1)
  
; Delete this Image from memory
  DeleteImage 1
  
; Display the status of this image number
; (is there and image loaded into number or not)
  Print GetImageStatus(1)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  1
  0
  

 
Related Info: CreateFxImage | CreateImage | DeleteAllImages | DeleteImageRange | LoadImage | LoadNewImage | NewFxImage | NewImage :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com