C# Class ImageGlass.ImageListView.ThumbnailExtractor

Extracts thumbnails from images.
Afficher le fichier Open project: d2phap/ImageGlass Class Usage Examples

Méthodes publiques

Méthode Description
FromFile ( string filename, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, bool useExifOrientation, bool useWIC ) : Image

Creates a thumbnail from the given image file.

FromImage ( Image image, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, bool useExifOrientation, bool useWIC ) : Image

Creates a thumbnail from the given image.

Private Methods

Méthode Description
ConvertToBitmap ( System.Windows.Media.Imaging.BitmapSource sourceWpf ) : Bitmap

Converts BitmapSource to Bitmap.

GetMetadataObject ( BitmapMetadata metadata ) : object

Returns the metadata for the given query.

GetRotation ( System.Windows.Media.Imaging.BitmapFrame frameWpf ) : int

Returns Exif rotation in degrees. Returns 0 if the metadata does not exist or could not be read. A negative value means the image needs to be mirrored about the vertical axis.

GetRotation ( Image img ) : int

Returns Exif rotation in degrees. Returns 0 if the metadata does not exist or could not be read. A negative value means the image needs to be mirrored about the vertical axis.

GetRotation ( string filename ) : int

Returns Exif rotation in degrees. Returns 0 if the metadata does not exist or could not be read. A negative value means the image needs to be mirrored about the vertical axis.

GetThumbnail ( System.Windows.Media.Imaging.BitmapFrame bmp, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, int rotate ) : Image

Creates a thumbnail from the given bitmap.

GetThumbnailBmp ( Image image, Size size, int rotate ) : Image

Creates a thumbnail from the given image.

GetThumbnailBmp ( string filename, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, int rotate ) : Image

Creates a thumbnail from the given image file.

ScaleDownRotateBitmap ( System.Windows.Media.Imaging.BitmapSource sourceWpf, double scale, int angle ) : System.Windows.Media.Imaging.BitmapSource

Scales down and rotates a Wpf bitmap.

ScaleDownRotateBitmap ( Image source, double scale, int angle ) : Image

Scales down and rotates an image.

Method Details

FromFile() public static méthode

Creates a thumbnail from the given image file.
public static FromFile ( string filename, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, bool useExifOrientation, bool useWIC ) : Image
filename string The filename pointing to an image.
size System.Drawing.Size Requested image size.
useEmbeddedThumbnails UseEmbeddedThumbnails Embedded thumbnail usage.
useExifOrientation bool true to automatically rotate images based on Exif orientation; otherwise false.
useWIC bool true to use Windows Imaging Component; otherwise false.
Résultat Image

FromImage() public static méthode

Creates a thumbnail from the given image.
public static FromImage ( Image image, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, bool useExifOrientation, bool useWIC ) : Image
image Image The source image.
size System.Drawing.Size Requested image size.
useEmbeddedThumbnails UseEmbeddedThumbnails Embedded thumbnail usage.
useExifOrientation bool true to automatically rotate images based on Exif orientation; otherwise false.
useWIC bool true to use Windows Imaging Component; otherwise false.
Résultat Image