Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to calculate the size of a graphic array

Graphical Techniques in QB

How to calculate the size of a graphic array

by  quebasic2  Posted    (Edited  )
Let's face it, arrays take up a lot of memory, and kilobytes, but if you want a decent program, then you need to use graphics. To make decent graphic animations, you need arrays. So how can you calculate the size of the array? It is quite simple: arraysize = (xlength*ylength)-1.
So if your graphic is five pixels by five pixels, then your array needs to be 24 in length: array(24).
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top