Results 1 to 3 of 3

Thread: can Imageprovider provide image in zip files?

  1. #1

    Default can Imageprovider provide image in zip files?

    Imageprovider use CL_VirtualDirectory to read files...
    How can I get the access use CL_ZipArchive?

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006


    Using the virtual file system:

    CL_VirtualFileSystem vfs("", true);
    CL_PixelBuffer image = CL_ImageProviderFactory::load(
    Seems its not possible to do it directly from CL_ZipArchive, since the functions all require a CL_VirtualDirectory.

    It would probably be simple to create a patch for ClanLib adding the support, since internally these functions all fetch a CL_IODevice and then continue the loading from that. We would need a volunteer for this tho

  3. #3
    ClanLib Developer
    Join Date
    May 2007


    The png provider supports it, thanks to harry's recent patch (SVN Rev 2994)

    - Added CL_PNGProvider::load and ::save now take CL_IODevice parameters to enable load and save to any supported io type, including memory.

Similar Threads

  1. Where is my Image?
    By Martin in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 03-19-2008, 11:28 AM
  2. Rendering into my custom image and then drawing this image to the display
    By ValkaVALES in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 07-03-2007, 09:53 AM
  3. Image help
    By in forum Dink Smallwood HD
    Replies: 2
    Last Post: 02-04-2004, 08:42 PM
  4. Creating TGA files...
    By Akolade in forum RTsoft Tavern
    Replies: 3
    Last Post: 02-20-2003, 04:31 PM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts