This documentation is for the old version. Go to the latest Graphics Mill docs

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:

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

See Also

Reference