Class GDIExtractor
Read metadata.
Inheritance
Implements
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public class GDIExtractor : IExtractor
Constructors
| Improve this Doc View SourceGDIExtractor()
Initializes a new instance of the GDIExtractor class.
Declaration
public GDIExtractor()
Properties
| Improve this Doc View SourceName
Gets the name of this extractor.
Declaration
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetMetadata(String)
Returns image metadata.
Declaration
public virtual Metadata GetMetadata(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Filepath of image |
Returns
Type | Description |
---|---|
Metadata |
GetShellInfo(String)
Returns shell info.
Declaration
public virtual ShellInfo GetShellInfo(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Filepath of image |
Returns
Type | Description |
---|---|
ShellInfo |
GetThumbnail(Image, Size, UseEmbeddedThumbnails, Boolean)
Creates a thumbnail from the given image.
Declaration
public virtual Image GetThumbnail(Image image, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, bool useExifOrientation)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | The source image. |
System.Drawing.Size | size | Requested image size. |
UseEmbeddedThumbnails | useEmbeddedThumbnails | Embedded thumbnail usage. |
System.Boolean | useExifOrientation | true to automatically rotate images based on Exif orientation; otherwise false. |
Returns
Type | Description |
---|---|
System.Drawing.Image | The thumbnail image from the given image or null if an error occurs. |
GetThumbnail(String, Size, UseEmbeddedThumbnails, Boolean)
Creates a thumbnail from the given image file.
Declaration
public virtual Image GetThumbnail(string filename, Size size, UseEmbeddedThumbnails useEmbeddedThumbnails, bool useExifOrientation)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The filename pointing to an image. |
System.Drawing.Size | size | Requested image size. |
UseEmbeddedThumbnails | useEmbeddedThumbnails | Embedded thumbnail usage. |
System.Boolean | useExifOrientation | true to automatically rotate images based on Exif orientation; otherwise false. |
Returns
Type | Description |
---|---|
System.Drawing.Image | The thumbnail image from the given file or null if an error occurs. |
IsImage(Stream)
Checks the stream header if it matches with any of the supported image file types.
Declaration
public static bool IsImage(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | An open stream pointing to an image file. |
Returns
Type | Description |
---|---|
System.Boolean | true if the stream is an image file (BMP, TIFF, PNG, GIF, JPEG, WMF, EMF, ICO, CUR); false otherwise. |