We need to write an XCMD that can show some very large (40 MB) pictures in HDF format (an 8 or 24 bit raster image), and allow for scrolling and zooming. We are going to try throwing a lot of RAM at the problem so we won't have to worry about moving data to and from disk. In some ways, it seems very simple: just read in the picture and show it. I have some questions, through:
1) What is the best way for an XCMD to deal with large memory requirements? Is it as simple as just allocating enough memory (assuming that hypercard has been given sufficient memory), or are there some gotchas?
2) What is the good/best/approved way for an XCMD to display a picture on a card?
3) Is there any appropriate source code we can use as a starter? A simple XCMD that displays pictures? Or a simple XCMD that must deal with very large data?
Thanks in advance for any answers to these questions. I've looked through the major archives and haven't found XCMD source code that seems appropriate.