GetImageType
FormatType = GetImageType(ImageIndex)
 
Parameters:

    ImageIndex = The Image you wish to query
Returns:

    FormatType = The type of format of this image
 

     The GetImageType() function returns the type of internal format an image is stored as.


Format Types Values


0 = Image doesn't exist.
1 = Video buffer image
2 = FX buffer
4 = (future)
8 = AFX buffer




FACTS:


      * none



Mini Tutorial:


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

  
; 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 images Height
  Print GetImageType(1)
  
  
; display the screen and wait for a key to be pressed
  Sync
  WaitKey
  
  


This example would output.

  
  1
  100
  50
  1
  

 
Related Info: GetImageHeight | GetImageStatus | GetImageWidth | LoadAFxImage | LoadFxImage | LoadImage :
 


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