---
title: "ImageVObject..::.LoadImage Method (Uri, Boolean, Boolean, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject_LoadImage_4_cd5147db.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 (Uri, Boolean, Boolean, Boolean)
 
Loads the bitmap from the external source.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Sub LoadImage ( _imageUri As Uri, _actualSize As Boolean, _saveAspectRatio As Boolean, _downloadToCache As Boolean _
)
```
 
```csharp
public void LoadImage(Uri imageUri,bool actualSize,bool saveAspectRatio,bool downloadToCache
)
```
 
### Parameters
 
 - imageUri
     - Type: [System.Uri](http://msdn2.microsoft.com/en-us/txt7706a)
 [Uri](http://msdn2.microsoft.com/en-us/txt7706a) to load a bitmap.

 - actualSize
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying whether a size of the [ImageVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject.htm.md) should be same as a size of loaded image.

 - saveAspectRatio
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying whether to decrease width or height of the [ImageVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject.htm.md) to save aspect ratio of loaded image.

 - downloadToCache
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying if the bitmap should be loaded to the private cache.
   
## See Also

### Reference

- [ImageVObject Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject.htm.md)
- [LoadImage Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject_LoadImage.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
