On Mon, 23 Aug 1999, Claude Lemmel wrote:

> I am prepairing a stack of 600 cards ; the size of the cards is 800x600 ; each
> card has an image 640x480 in colour and a short text. The images are stored as
> jpeg out of the stack.
> 
> This stack will be distributed on cd-rom in schools ; memory management is a
> concern because some computers in schools have only 8 or 16 MO RAM.
> 
> What is the most efficient way to display the images :
> 
> - only one image in a group, the rect and the filename of the image stored as a
> custom prop of the card and resetted in preopencard
> - one image in each card, the filename of the image stored as a custom prop of
> the card, loading the image on preopencard and setting the filename to empty on
> closecard
> - one image in each card, the filename of the image pointing on the actual image
> file
> 
> In other words, does Metacard release automatically the space used in memory by
> an image in a closed card

Yes.  So the last method is probably the best because it's the
simplest.

A few other things you might do to minimize memory usage is to do any
scaling of the image in an image editing program rather than with
MetaCard.  And if you have any hidden images, you can set their
"alwaysBuffer" property to false.  In that case, they won't be loaded
and decompressed until they are made visible.  This may make showing
and hiding them much slower, though, and so is not a good idea if
maximizing responsiveness is more important than reducing memory
usage.  And if you don't need smooth animation or visual effects,
setting the alwaysBuffer property of the stack will also reduce memory
requirements.
  Regards,
    Scott

> Regards, Claude
> 
> ----------------------------
> Claude Lemmel / Opus species
> email : [EMAIL PROTECTED]
> website : www.opus-species.com
> ------------------------------
> 

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...

Reply via email to