You’re viewing documentation for an outdated product. The Graphics Mill Web Controls library has been removed from Graphics Mill and is now part of the Customers Canvas product line, where it is available as a set of APIs for Design Atoms and as Design Editor.

ImageVObject.loadImage Method

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