GetImageWidth
Width = GetImageWidth(ImageIndex)
 
Parameters:

    ImageIndex = The Image you wish to query
Returns:

    Width = This images width in pixels
 

     GetImageWidth() will return the width in pixels of a selected image.



FACTS:


     * Use GetImageHeight to get the images height.

     * 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 the retrieve it's 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: GetImageDepth | GetImageHeight | GetImageStatus | GetImageType | ScaleImage :
 


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