ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >
Important: The information in this document is Not Recommended and should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Q: I use the A: There are two ways to cause Another way is to replace the You create a handle in temporary memory the size of a picture and fill in its
size and The advantage of this method over the first one is that you can make the picture as large as temporary memory will let you, and you end up using just enough memory. The first technique, while technically easier to implement, limits you to the size of the heap you initially create, and you also may use a lot more temporary memory than you need. If you're able to come up with a good guess of how large your pictures are going to be, use the first technique; if not, use the second one. See Inside Macintosh: Memory for more information about creating heap zones. If you're not familiar with picture spooling, see Inside Macintosh Volume V, page 89, which has code for spooling a picture to disk as it's created. This is the same technique as documented there, only it spools the picture to temporary memory instead. |
|