This method loads image data from a file
ImageKit9ALib refers to the ANSI version, ImageKit9Lib refers to the Unicode version.
Parameters
Name | Explanation |
---|---|
Val | 0 (All supported files), 1 (BMP), 2(JPEG/Exif), 3(GIF), 4(TIFF), 5(PNG), 6(FPX), 7(PCX), 8(WMF), 9(EMF), 10(DXF), 11(SVG), 12(JPEG2000), 13(SXF p21), 14(SXF sfc) |
The following constants can also be used: (ikLoad = 0, ikLoadBMP
= 1, ikLoadJPEG = 2, ikLoadGIF = 3, ikLoadTIFF = 4,
ikLoadPNG = 5, ikLoadFPX = 6, ikLoadPCX = 7, ikLoadWMF = 8,
ikLoadEMF = 9, ikLoadDXF = 10, ikLoadSVG = 11, ikLoadJPEG2000 = 12,
ikLoadSXFP21 = 13, ikLoadSXFSFC = 14)
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The LoadFile 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 ImageHandle property or the Layer(LayerNo).ImageHandle property as determined by the value set in the LayerNo property. If the image is a multi-page image file, the LoadFile method loads the page specified by the LoadPage property. When loading a PNG image, please set the PngAlphaChannel property. If the image is a DXF, EMF, SVG, SXF, or WMF image file, please set the VectorHeight and VectorWidth properties. NOTE: For TIFF(JPEG Compression), some TIFF(JPEG) images cannot be loaded by the ImageKit.
To display a caption, message, and button in the Progress dialog box when loading files, set the Caption, Message and ButtonName properties.
Note: Although the LoadFile 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 ImageKit9 supports a portion of the tags from Exif version 2.3
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.
[Differences from ImageKit7 ActiveX]
The ImageKit7 ActiveX only allowed files from local drives or
network drives to be loaded. Please refer to the FileName property for details.