This method loads DIB image data from raw data.

[Visual Basic]
Public Function LoadImageFromRawData(Val As LoadFileType) As Image
[C#]
public Image LoadImageFromRawData(LoadFileType Val) ;

Parameters

Val
     The format of the image to be loaded
     This value is of type LoadFileType

Return Value

Returns the loaded image if successful

Explanation

The LoadImageFromRawData method uses the raw image data set into the RawData property and converts it to DIB image data. When the raw image data is a multipage image, set the page to be loaded in the LoadPage property.

Executing the LoadImageFromRawData method will set the image information in the same properties as executing the GetImageFileTypeFromRawData method.

The supported image formats are BMP, JPEG, TIFF (uncompressed, GROUP3-1D, GROUP4, PACKBITS, LZW, JPEG compression (partially not supported)), PNG, GIF, JPEG2000, FPX, WMF, EMF.

For 16 bit BMP and TIFF files:
16 bit BMP and TIFF files can be loaded but the loaded image data will converted to 32 bit image data. Saving the data will result in a 32 bit image.

For BMP compression, JPEG2000 and FPX formats:
Because standard .NET Framework does not support these image formats, the ImageKit.NET3 Plugin (Win32 Dll files) are required.

For WMF and EMF files:
WMF and EMF images are treated as raster images after loading.

Although there are differences between loading from a file or raw data, the operation is the same as the LoadImageFromFile method.

See Also

IkFile Class | IkFile Members

The ImageKit.NET3 is created by Newtone Corporation