C# Class ImageGlass.Library.Image.ExifThumbReader

Allows reading of embedded thumbnail image from the EXIF information in an image.
Show file Open project: d2phap/ImageGlass

Public Methods

Method Description
ReadThumb ( string imagePath ) : System.Drawing.Image

Reads the thumbnail in the given image. If no thumbnail is found, returns null

Private Methods

Method Description
GdipDisposeImage ( IntPtr image ) : int
GdipGetPropertyItem ( IntPtr image, int propid, int size, IntPtr buffer ) : int
GdipGetPropertyItemSize ( IntPtr image, int propid, int &size ) : int
GdipLoadImageFromFile ( string filename, IntPtr &image ) : int
convertFromMemory ( IntPtr thumbData ) : System.Drawing.Image

Converts the IntPtr buffer to a property item and then converts its value to a Drawing.Image item

createException ( int gdipErrorCode ) : Exception

Generates an exception depending on the GDI+ error codes (I removed some error codes)

Method Details

ReadThumb() public static method

Reads the thumbnail in the given image. If no thumbnail is found, returns null
public static ReadThumb ( string imagePath ) : System.Drawing.Image
imagePath string
return System.Drawing.Image