DjvuImageCacheData Method
Caches the data private.

Namespace: Aspose.Imaging.FileFormats.Djvu
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
public override void CacheData()
Examples
The following example shows how to cache all pages of a DJVU image.
[C#]

string dir = "c:\\temp\\";

// Load an image from a DJVU file.
using (Aspose.Imaging.FileFormats.Djvu.DjvuImage image = (Aspose.Imaging.FileFormats.Djvu.DjvuImage)Aspose.Imaging.Image.Load(dir + "sample.djvu"))
{
    // This call caches all the pages so that no additional data loading will be performed from the underlying data stream.
    image.CacheData();

    // Or you can cache the pages individually.
    foreach (Aspose.Imaging.FileFormats.Djvu.DjvuPage page in image.Pages)
    {
        page.CacheData();
    }
}
See Also