This method loads image data from a file

[C++Builder]   [ bool = ]imagekitcontrolname->FileIO->LoadFile(TVIkLoadFile LoadType)
[Delphi]   [ Boolean = ]imagekitcontrolname.FileIO.LoadFile(LoadType: TVIkLoadFile)

[TVIkLoadFile Type]

Unit
     IkInit

type
     TVIkLoadFile = (vikLoad, vikLoadBMP, vikLoadJPEG, vikLoadGIF, vikLoadTIFF, vikLoadPNG, vikLoadFPX, vikLoadPCX, vikLoadWMF, vikLoadEMF, vikLoadDXF, vikLoadSVG, vikLoadJPEG2000, vikLoadSXFP21, vikLoadSXFSFC);

Parameters

Name Explanation
LoadType vikLoad (Automatically Detects File Format)
vikLoadBMP (BMP)
vikLoadJPEG (JPEG/Exif)
vikLoadGIF (GIF)
vikLoadTIFF (TIFF)
vikLoadPNG (PNG)
vikLoadFPX (FPX)
vikLoadPCX (PCX)
vikLoadWMF (WMF)
vikLoadEMF (EMF)
vikLoadDXF (DXF)
vikLoadSVG (SVG)
vikLoadJPEG2000 (JPEG2000)
vikLoadSXFP21 (SXFP21)
vikLoadSXFSFC (SXFSFC)

Return Value

Returns True if successful. Returns False 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 ImageKit10 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 the ImageKit 7/8/9/10 ActiveX

The VCL constants have a "v". In ActiveX, the constants are ikLoad, ikLoadBMP, ikLoadJPEG, ikLoadGIF, ikLoadTIFF, ikLoadPNG, ikLoadFPX, ikLoadPCX, ikLoadWMF, ikLoadEMF, ikLoadDXF, ikLoadSVG, ikLoadJPEG2000, ikLoadSXFP21, ikLoadSXFSFC

 

The ImageKit10 VCL is a product created by Newtone Corporation