This method loads image data from a file.

[Visual Basic] Public Function LoadImageFromFile(Val As Newtone.ImageKit.LoadFileType) As Boolean
[C#] public bool LoadImageFromFile(Newtone.ImageKit.LoadFileType Val) ;

Parameters

Val
   The format of the image to be loaded
   The value is of type Newtone.ImageKit.LoadFileType

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.

Note: Although the LoadImageFromFile method can load the primary image in an Exif(JPEG) image file, to retrieve the thumbnail image or image information, please use the GetImageFileType method. The ImageKit.NET supports Exif version 2.1

Note: Because standard .NET Framework does not support the following image formats, the ImageKit.NET2 Plugin (Win32 Dll files) are required when using JPEG2000 and FPX formats.

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.NET2 is created by Newtone Corporation