---
title: "ImageVObject..::.loadImage Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject_loadImage.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ImageVObject.loadImage Method 
 
Loads a bitmap from the external source using the specified parameters.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/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/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
