ImageQuantity
ImageQuantity NumberOfImages
 
Parameters:

    NumberOfImages = The max number of Images that PB can handle
Returns: NONE
 

     ImageQuantity lets you expand the max number Images available at any one time. So if you ever run out, you can request more at any time.




FACTS:


     * You can also lower the image quantity if you like (which can save some memory), but any image outside of the new range will be deleted during the resize process.

     * Image quantity indexes is limited to 2^24 banks (over 24 million).

     * ImageQuantity is irrelevant for users using dynamic image media creation. (See NewImage, LoadNewImage etc)




Mini Tutorial:


      This example simply gets the current image quantity, display it and doubles the image quantity and displays it again.

  
; Read the Default image range
  AvailableImages=GetImageQuantity()
  
; display this value to the screen
  Print AvailableImages
  
; double the available number of images
  ImageQuantity AvailableImages*2
  
; display the new new image quanity
  Print GetImageQuantity()
  
; display the screen and wait for a key press
  
  Sync
  WaitKey
  
  



This example would output (This depends upon what version of PB your running, so the results may differ).

  
  1500
  3000
  

 
Related Info: CreateFxImage | CreateImage | GetFreeImage | LoadImage | LoadNewImage | NewFxImage | NewImage :
 


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