---
title: "ImageVObject..::.loadImage Method "
canonical: https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject_loadImage.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**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](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/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](https://www.graphicsmill.com/docs/gmwc/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
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

- [ImageVObject Class](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gmwc/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
