You’re viewing documentation for an outdated product. Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see Design Atoms .NET, Design Atoms JS, and Design Editor.

BitmapViewer.PreviewImageResizeRatio Property

Applies to: Graphics Mill Web Controls · Archived documentation

Gets/sets the ratio of the original image dimensions to the dimensions of the preview image displayed in the background of the control (when enabled).

Namespace: Aurigma.GraphicsMill.AjaxControls
Assembly: Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)

Syntax

C#
public int PreviewImageResizeRatio { get; set; }

Property Value

The ratio of the original image dimensions to the dimensions of the preview image displayed in the background of the control (when enabled).

Remarks

When preview image is generated, its width and height is divided by the value stored in this property. This image is downloaded to the browser entirely and stretched at the container. After that high resolution portion of the image is downloaded to client and displayed in the control. This way user can preview (with very poor quality though) the portion of the image, and he can scroll to the necessary position on the image before high resolution fragment is loaded.

The lower value you specify the higher is a resolution of the preview image. It will increase the preview image quality, but greatly increase the size.

Default value is 8 (the preview image is less in 64 times).

See Also

Reference