Show / Hide Table of Contents

Class GDIExtractor

Read metadata.

Inheritance
System.Object
GDIExtractor
Implements
IExtractor
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public class GDIExtractor : IExtractor

Constructors

| Improve this Doc View Source

GDIExtractor()

Initializes a new instance of the GDIExtractor class.

Declaration
public GDIExtractor()

Properties

| Improve this Doc View Source

Name

Gets the name of this extractor.

Declaration
public virtual string Name { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetMetadata(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IExtractor
Back to top Copyright © 2018 Özgür Özçıtak