This method loads DIB image data from raw data.

[C++Builder]   [ bool = ]imagekitcontrolname->FileIO.LoadFileMem(TVIkLoadFile LoadType)
[Delphi]   [ Boolean = ]imagekitcontrolname.FileIO.LoadFileMem(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
Val 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 LoadFileMem method uses the raw image data set into the ImageHandleRawData property and converts it to DIB image data. This DIB image data is then set into either the ImageHandle or the Layer(LayerNo).ImageHandle property depending on the value of the LayerNo property.

When the raw image data is a multipage image, set the page to be loaded in the LoadPage property.

When the raw image data is PNG data, 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: With FPX and SXF formats, the ImageKit must create a temporary file which it does internally.

Although the LoadFileMem method can load the primary image in an Exif(JPEG) image file, to retrieve the thumbnail image or image information, please use the GetImageFileTypeMem method. The ImageKit10 supports a portion of the tags from Exif version 2.3

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