This method loads DIB image data from raw data.

[Visual Basic]   [ Boolean = ]imagekitcontrolname.File.LoadFileMem(Val As LoadFileConstants)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetFile().LoadFileMem(long Val)
[VB.NET]   [ Boolean = ]imagekitcontrolname.File.LoadFileMem(Val As ImageKit10(A)Lib.LoadFileConstants)
[C#.NET]   [ bool = ]imagekitcontrolname.File.LoadFileMem(ImageKit10(A)Lib.LoadFileConstants Val)

ImageKit10ALib refers to the ANSI version, ImageKit10Lib 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 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

 

The ImageKit10 ActiveX is a product created by Newtone Corporation