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.

ImageVObject.loadImage Method

Applies to: Graphics Mill Web Controls · Archived documentation

Loads a bitmap from the external source using the specified parameters.

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

Syntax

Java Script
function loadImage(sourceUrl, options);

Parameters

sourceUrl

Type: Global..String

The URL to load image from.
options

Type: Global..Object

The structure of image load paramters. See the Remarks section for details.

Remarks

The structure to pass to this method should contain the following boolean values:

  • actualSizespecifies whether a size of the image v-object should be same as a size of loaded image.
  • saveAspectRatiospecifies whether to decrease width or height of the ImageVObject to save aspect ratio of loaded image.
  • downloadToServerCachespecifies whether the bitmap should be loaded to the private cache.

See Also

Reference