OS4Depot.net 20130227_1013
  Home Search Mirrors Contact Info Credits

 Readme data for Root » Graphics » Aiss » aisscache.lha

Description: Shared library to cache AISS images into memory
Install: aisscache.lha
Size: 8kb 5
Version: 1.0
Date: 03 Sep 10
Author: Robert Szacki
Submitter: Robert Szacki
Email: robert szacki/gmail com
Homepage: http://minniatian.republika.pl
Category: graphics/aiss
License: Public domain
Distribute: yes
Min OS Version: 4.0
---------------------------------------------------------
                    AISSCache.library 
---------------------------------------------------------

Here is a shared library which purpose is to cache AISS (and other) images into
the memory. For now it offers one function ObtainImage() which returns Image
structure to the given image file. If the file is already in memory it returns
immediately, otherwise it tries to load the image from disk.

The Image structures are stored as a list in AISSCache library base, so all
applications share the same images. The images are read using datatypes with
bitmap.image class.

What are the advantages of using the library instead of loading images by
yourself?

* Reduced memory consumption,
* Increased loading speed.

The documentation is included within archive. The library is in libs/ directory
and there is an example of using the library in example/ directory.

I have written this library as a support for my other programs including Icon
Editor which I am working on. I hope it will be useful for other programmers.
This is my first library so feedback is very welcome.






Copyright (c) 2004-2013 Björn Hagström. All rights reserved.
OS4 and its logos are registered trademarks of Hyperion Entertainment