CmxImageCacheData Method |
Namespace: Aspose.Imaging.FileFormats.Cmx
[C#] string dir = "c:\\temp\\"; // Load an image from a CMX file. using (Aspose.Imaging.FileFormats.Cmx.CmxImage image = (Aspose.Imaging.FileFormats.Cmx.CmxImage)Aspose.Imaging.Image.Load(dir + "sample.cmx")) { // This call caches only the default page. image.CacheData(); // Cache all pages so that no additional data loading will be performed from the underlying data stream. foreach (Aspose.Imaging.FileFormats.Cmx.CmxImagePage page in image.Pages) { page.CacheData(); } }