GetImageStatus
Flag = GetImageStatus(ImageIndex)
 
Parameters:

    ImageIndex = The Image you wish to query
Returns:

    Flag = This flags holds the state of the image. 0 = Not in use, 1 = created)
 

      GetImageStatus() returns that status of selected image. If the image exists (has been created) the function will return True value (1), if it hasn't been created, GetImageStatus returns a False (0)


Return Flags
      0 = Image doesn't exist
      1 = Image exists




FACTS:


      * none



Mini Tutorial:


      How to create an image and the retrieve it's dimensions information.

  
  
; Make image of 100x by 50y pixels
  CreateImage 1,100,50
  
; Display the images state (does it exist or not 0=no, 1 = yes)
  Print GetImageStatus(1)
  
; Display the images Width
  Print GetImageWidth(1)
  
; Display the images Height
  Print GetImageHeight(1)
  
; display the screen and wait for a key to be pressed
  Sync
  WaitKey
  
  


This example would output.

  
  1
  100
  50
  

 
Related Info: CreateImage | DeleteImage | GetImageHeight | GetImageType | GetImageWidth | NewImage :
 


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