---
title: "ImageVObject..::.LoadImage Method (FileInfo, Boolean, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_ImageVObject_LoadImage_3_894c218a.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 (FileInfo, 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 ( _imageFile As FileInfo, _actualSize As Boolean, _preserveAspectRatio As Boolean _
)
```
 
```csharp
public void LoadImage(FileInfo imageFile,bool actualSize,bool preserveAspectRatio
)
```
 
### Parameters
 
 - imageFile
     - Type: [System.IO.FileInfo](http://msdn2.microsoft.com/en-us/akth6b1k)
 [FileInfo](http://msdn2.microsoft.com/en-us/akth6b1k) 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.

 - preserveAspectRatio
     - 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.
   
## 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)
