C# Class EXIF_Tools.GlobalUtilityTool

Mostra file Open project: Dronolab/drono-exiftools

Public Properties

Property Type Description
NEWVAL bool
OFFSET bool

Public Methods

Method Description
GetAltitudeAtFile ( string fileName ) : double

Return the altitude stored in a file

GetFocalLenghtAtFile ( string fileName ) : double

Return the focal lenght stored in a file

GetNbFilesWithExt ( string directoryName, string extension ) : int

Return the number of files of a certain extension in a directory

ReplaceAltitudeAtDirectory ( string directoryName, bool changeType, double newValue ) : int

This method changes the Altitude EXIF of all images inside a directory, directoryName : path to directory where changes are to occur changeType : OFFSET or NEWVAL newValue : value to work with Notes : This method uses ReplaceAltitudeAtFile extensively, see it for more details

ReplaceAltitudeAtFile ( string fileName, bool changeType, double newValue ) : bool

This method will replace and altitude EXIF fileName : path to the file to change changeType : OFFSET or NEWVAL newValue : value to work with If changeType is OFFSET, the resulting EXIF will be (original altitude + newValue) If changeType is NEWVAL, the resulting EXIF will be (newValue)

ReplaceFocalLenghtAtDirectory ( string directoryName, double newValue ) : int

This method changes the focal lenght EXIF of all images inside a directory, directoryName : path to directory where changes are to occur newValue : value to work with Notes : This method uses ReplaceAltitudeAtFile extensively, see it for more details

ReplaceFocalLenghtAtFile ( string fileName, double newValue ) : bool

This method will replace focal lenght EXIF fileName : path to the file to change newValue : value to work with If changeType is OFFSET, the resulting EXIF will be (original altitude + newValue) If changeType is NEWVAL, the resulting EXIF will be (newValue)

Method Details

GetAltitudeAtFile() public static method

Return the altitude stored in a file
public static GetAltitudeAtFile ( string fileName ) : double
fileName string
return double

GetFocalLenghtAtFile() public static method

Return the focal lenght stored in a file
public static GetFocalLenghtAtFile ( string fileName ) : double
fileName string
return double

GetNbFilesWithExt() public static method

Return the number of files of a certain extension in a directory
public static GetNbFilesWithExt ( string directoryName, string extension ) : int
directoryName string
extension string
return int

ReplaceAltitudeAtDirectory() public static method

This method changes the Altitude EXIF of all images inside a directory, directoryName : path to directory where changes are to occur changeType : OFFSET or NEWVAL newValue : value to work with Notes : This method uses ReplaceAltitudeAtFile extensively, see it for more details
public static ReplaceAltitudeAtDirectory ( string directoryName, bool changeType, double newValue ) : int
directoryName string
changeType bool
newValue double
return int

ReplaceAltitudeAtFile() public static method

This method will replace and altitude EXIF fileName : path to the file to change changeType : OFFSET or NEWVAL newValue : value to work with If changeType is OFFSET, the resulting EXIF will be (original altitude + newValue) If changeType is NEWVAL, the resulting EXIF will be (newValue)
public static ReplaceAltitudeAtFile ( string fileName, bool changeType, double newValue ) : bool
fileName string
changeType bool
newValue double
return bool

ReplaceFocalLenghtAtDirectory() public static method

This method changes the focal lenght EXIF of all images inside a directory, directoryName : path to directory where changes are to occur newValue : value to work with Notes : This method uses ReplaceAltitudeAtFile extensively, see it for more details
public static ReplaceFocalLenghtAtDirectory ( string directoryName, double newValue ) : int
directoryName string
newValue double
return int

ReplaceFocalLenghtAtFile() public static method

This method will replace focal lenght EXIF fileName : path to the file to change newValue : value to work with If changeType is OFFSET, the resulting EXIF will be (original altitude + newValue) If changeType is NEWVAL, the resulting EXIF will be (newValue)
public static ReplaceFocalLenghtAtFile ( string fileName, double newValue ) : bool
fileName string
newValue double
return bool

Property Details

NEWVAL public_oe static_oe property

public static bool NEWVAL
return bool

OFFSET public_oe static_oe property

public static bool OFFSET
return bool