C# 클래스 Manina.Windows.Forms.MetadataExtractor

Read metadata. Only EXIF data when using .NET 2.0 methods. Prioritized EXIF/XMP/ICC/etc. data when using WIC/WPF methods.
파일 보기 프로젝트 열기: oozcitak/imagelistview 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Artist string
Comment string
Copyright string
DPIX double
DPIY double
DateTaken System.DateTime
EquipmentManufacturer string
EquipmentModel string
Error System.Exception
ExposureTime double
FNumber double
FocalLength double
Height int
ISOSpeed int
ImageDescription string
Rating int
Software string
Width int

공개 메소드들

메소드 설명
FromBitmap ( System.Windows.Media.Imaging.BitmapFrame frameWpf ) : MetadataExtractor

Creates an instance of the MetadataExtractor class. Reads metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.

FromFile ( string path ) : MetadataExtractor

Creates an instance of the MetadataExtractor class. Reads metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.

FromFile ( string path, bool useWic ) : MetadataExtractor

Creates an instance of the MetadataExtractor class. Reads metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.

비공개 메소드들

메소드 설명
ConvertFileTime ( System ft ) : System.DateTime

Convert FileTime to DateTime.

ExifAscii ( byte value ) : string

Converts the given Exif data to an ASCII encoded string.

ExifDateTime ( byte value ) : System.DateTime

Converts the given Exif data to DateTime.

ExifDateTime ( string value ) : System.DateTime

Converts the given Exif data to DateTime. Value must be formatted as yyyy:MM:dd HH:mm:ss.

ExifDouble ( byte value ) : double

Converts the given Exif data to a double number. The value must have 8 bytes.

ExifInt ( byte value ) : int

Converts the given Exif data to an 32-bit signed integer. The value must have 4 bytes.

ExifRational ( byte value ) : string

Converts the given Exif data to a signed rational value represented as a string. The value must have 8 bytes.

ExifUInt ( byte value ) : uint

Converts the given Exif data to an 32-bit unsigned integer. The value must have 4 bytes.

ExifURational ( byte value ) : string

Converts the given Exif data to an unsigned rational value represented as a string. The value must have 8 bytes.

ExifUShort ( byte value ) : ushort

Converts the given Exif data to an 16-bit unsigned integer. The value must have 2 bytes.

GetMetadataObject ( BitmapMetadata metadata ) : object

Returns the metadata for the given query.

InitViaBmp ( Image img ) : void

Read metadata using .NET 2.0 methods.

InitViaBmp ( string path ) : void

Open image and read metadata (.NET 2.0).

InitViaWpf ( System.Windows.Media.Imaging.BitmapFrame frameWpf ) : void

Inits metadata via WIC/WPF (.NET 3.0).

InitViaWpf ( BitmapMetadata data ) : void

Read metadata via WIC/WPF.

InitViaWpf ( string path ) : void

Inits metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.

MetadataExtractor ( ) : System.Windows.Media.Imaging

Initializes a new instance of the MetadataExtractor class.

메소드 상세

FromBitmap() 공개 정적인 메소드

Creates an instance of the MetadataExtractor class. Reads metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.
public static FromBitmap ( System.Windows.Media.Imaging.BitmapFrame frameWpf ) : MetadataExtractor
frameWpf System.Windows.Media.Imaging.BitmapFrame Opened WPF image
리턴 MetadataExtractor

FromFile() 공개 정적인 메소드

Creates an instance of the MetadataExtractor class. Reads metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.
public static FromFile ( string path ) : MetadataExtractor
path string Filepath of image
리턴 MetadataExtractor

FromFile() 공개 정적인 메소드

Creates an instance of the MetadataExtractor class. Reads metadata via WIC/WPF (.NET 3.0). If WIC lacks a metadata reader for this image type then fall back to .NET 2.0 method.
public static FromFile ( string path, bool useWic ) : MetadataExtractor
path string Filepath of image
useWic bool true to use Windows Imaging Component; otherwise false.
리턴 MetadataExtractor

프로퍼티 상세

Artist 공개적으로 프로퍼티

Image creator (null = not available).
public string Artist
리턴 string

Comment 공개적으로 프로퍼티

User comment (null = not available).
public string Comment
리턴 string

Copyright 공개적으로 프로퍼티

Copyright information (null = not available).
public string Copyright
리턴 string

DPIX 공개적으로 프로퍼티

Horizontal DPI.
public double DPIX
리턴 double

DPIY 공개적으로 프로퍼티

Vertical DPI.
public double DPIY
리턴 double

DateTaken 공개적으로 프로퍼티

Date taken.
public DateTime,System DateTaken
리턴 System.DateTime

EquipmentManufacturer 공개적으로 프로퍼티

Camera manufacturer (null = not available).
public string EquipmentManufacturer
리턴 string

EquipmentModel 공개적으로 프로퍼티

Camera model (null = not available).
public string EquipmentModel
리턴 string

Error 공개적으로 프로퍼티

Error.
public Exception,System Error
리턴 System.Exception

ExposureTime 공개적으로 프로퍼티

Exposure time.
public double ExposureTime
리턴 double

FNumber 공개적으로 프로퍼티

F number.
public double FNumber
리턴 double

FocalLength 공개적으로 프로퍼티

Focal length.
public double FocalLength
리턴 double

Height 공개적으로 프로퍼티

Image height.
public int Height
리턴 int

ISOSpeed 공개적으로 프로퍼티

Iso speed rating.
public int ISOSpeed
리턴 int

ImageDescription 공개적으로 프로퍼티

Image description (null = not available).
public string ImageDescription
리턴 string

Rating 공개적으로 프로퍼티

Rating value between 0-99.
public int Rating
리턴 int

Software 공개적으로 프로퍼티

Software used (null = not available).
public string Software
리턴 string

Width 공개적으로 프로퍼티

Image width.
public int Width
리턴 int