Skip to main content
A newer version of this page is available. .

Image Caching

Image Zoom

When the ASPxImageZoom control displays binary images, which can be specified using the ASPxImageZoom.ImageContentBytes and ASPxImageZoom.LargeImageContentBytes properties, the control caches the source images and saves the cached images to the folder specified by the ImageZoomAutoGeneratedImagesSettings.ImageCacheFolder property.

You can specify sizes of cached images using the members listed below.

Element Image Height Image Width
Preview Image ImageZoomAutoGeneratedImagesSettings.ImageHeight ImageZoomAutoGeneratedImagesSettings.ImageWidth
Zoom Window ImageZoomAutoGeneratedImagesSettings.LargeImageHeight ImageZoomAutoGeneratedImagesSettings.LargeImageWidth

The ASPxImageZoom.BinaryImageUrl and ASPxImageZoom.BinaryLargeImageUrl properties provide access to the cached image URLs.

Image Zoom Navigator

When the ASPxImageSliderBase.ImageSourceFolder property is specified, the ASPxImageZoomNavigator control caches the source images and saves the cached images to the folder specified by the AutoGeneratedImagesSettingsBase.ImageCacheFolder property.

For every source image, the ASPxImageZoomNavigator control creates three cached images to be displayed in the preview image, zoom window, and thumbnail elements. You can specify sizes of cached images using the members listed below.

Element Image Height Image Width
Preview Image ImageZoomNavigatorAutoGeneratedImagesSettings.ImageHeight ImageZoomNavigatorAutoGeneratedImagesSettings.ImageWidth
Zoom Window ImageZoomNavigatorAutoGeneratedImagesSettings.LargeImageHeight ImageZoomNavigatorAutoGeneratedImagesSettings.LargeImageWidth
Thumbnail ImageZoomNavigatorAutoGeneratedImagesSettings.ThumbnailHeight ImageZoomNavigatorAutoGeneratedImagesSettings.ThumbnailWidth

You can update content of a cache folder using the ASPxImageSliderBase.UpdateImageCacheFolder method.

ASPxImageZoomNavigator_CachedImages

Online Demo

Image Zoom - Binding to Binary Data