GetImageHeight
Height = GetImageHeight(ImageIndex)
 
Parameters:

    ImageIndex = The Image you wish to query
Returns:

    Height = This images height in pixels
 

     The GetImageHeight() function returns the height of an image in pixels.



FACTS:


     * See GetImageWidth() for the width.

     * You can use GetSurfaceWidth, GetSurfaceHeight to query the size of the current surface, which works on the screen and images.





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 screen and wait for a key to be pressed
  Sync
  WaitKey
  
  


This example would output.

  
  1
  100
  50
  

 
Related Info: GetImageStatus | GetImageViewPortX1 | GetImageViewPortX2 | GetImageViewPortY1 | GetImageViewPortY2 | GetImageWidth | GetScreenWidth | GetSurfaceHeight | GetSurfaceWidth :
 


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