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.

The supported image formats are BMP, JPEG, TIFF (uncompressed, GROUP3-1D, GROUP4, PACKBITS, LZW, JPEG compression (partially not supported)), PNG, GIF, JPEG2000, FPX, WMF, EMF.

For 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.

For BMP compression, JPEG2000 and FPX formats:
Because standard .NET Framework does not support these image formats, the ImageKit.NET3 Plugin (Win32 Dll files) are required.

For WMF and EMF files:
WMF and EMF images are treated as raster images after loading.

Regarding FlashPix:
Flashpix image files are multi-resolution image files with a tiled composition. Flashpix files store image data in a hierarchy from the original image at the highest level. Each subsequent level contains the same image with horizontal and vertical resolution half that of the image in the level above. This allows editing and printing at the optimum resolution. Each resolution image is divided in to 64x64 tiles. Each tiled image can be uncompressed, JPEG compression, or single color compression.

See Also

ImageKit.File Members | Newtone.ImageKit.Win.ImageKit

The ImageKit.NET3 is created by Newtone Corporation