This method loads image data from a file.

[Visual Basic] Public Function LoadImageFromFile() As Boolean
[C#] public bool LoadImageFromFile() ;

Parameters

None

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The LoadImageFromFile method loads image data from a file. The FileName property sets the file to be loaded. If successful, the image data is set in either the Image property or the Layer(LayerNumber).Imgae property as determined by the value set in the LayerNumber property. If the image is a multi-page image file, set the page to be loaded in the LoadPage property. Executing this method will set image information in the same properties as executing the GetImageFileType method.

16 bit BMP and TIFF files:
16 bit BMP and TIFF files can be loaded but the loaded image data will converted to 32 bit image data. Saving the data will result in a 32 bit image.

WMF and EMF files:
Wmf and Emf images are converted to raster images after they are loaded.

See Also

ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation