News:

Function Finder  Find all the functions within source code files

Main Menu

Imagequantity

Started by tonyg, June 08, 2007, 05:46:23 PM

Previous topic - Next topic

tonyg

I've read the documentation for ImageQuantity but I'm not sure how it works.
If I run the example with 1.63 it doesn't seem to limit the number of images.

kevin

#1

The quantity is the size of the array contain that image pointers live in. This is only really relevant if the user assigns indexs manually

Ie.

 CreateImage 100,width,height   ; this would allocate cell 100 in the image array container.

 In this situation, it's conceivably possible to run out of indexs (since the container has a default size), hence we'd use ImageQuantity to expand/contract the image container.

For people using dynamic media creation, it's completely irrelevant.

i.e.

 MyImage=NewImage(Width,Height)

 In this situation PB will take care of the image containers quantity for us, returning a new Image Index every time.  

tonyg