This method retrieves information from the raw image data and sets that information into the following properties:
Comment, CreationTimeDay, CreationTimeHour, CreationTimeMinute, CreationTimeMonth, CreationTimeSecond, CreationTimeYear, Exif, FileBitCount, FileHeight, FileWidth, FileImageSize, FileMaxPage, FileSize, FileType, FileWidthByte, FileXdpi, FileYdpi, Interlace

[Visual Basic] Public Function GetImageFileTypeFromRawData() As Boolean
[C#] public bool GetImageFileTypeFromRawData();

Parameters

None

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The GetImageFileTypeFromRawData method retrieves information from the raw image data and sets that information into the following properties:
Comment, CreationTimeDay, CreationTimeHour, CreationTimeMinute, CreationTimeMonth, CreationTimeSecond, CreationTimeYear, Exif, FileBitCount, FileHeight, FileWidth, FileImageSize, FileMaxPage, FileSize, FileType, FileWidthByte, FileXdpi, FileYdpi, Interlace

To execute this method the appropriate value must first be set into the RawData and LoadPage property. If the image is a multi-page image file then properties other than FileMaxPage and FileSize will relate to the page specified in the LoadPage property. For all image file formats except TIFF, the Comment property relates to the whole image file, regardless of whether it is a multi-page image file or not. For more details, please refer to the specific property information.

Note: Even if the file format is supported, if no value has been set then that property will return a 0 or an empty string.

This method is the same as retrieving information from the image file using the GetImageFileType, however the properties related to "File Created", "File Accessed", and "File Modified" will have a value of 0.

See Also

ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation