C# Class GPS.Utils.ExifUtils

ExifUtils is a utility class that allow clients to get information like the "photo orientation" field from an image in Exif format. Exif (Exchangeable image file format) is the image file format used by digital cameras including those on smartphones.
Show file Open project: ProjPossibility/CSUN-MobileMapMagnifier Class Usage Examples

Public Methods

Method Description
ExifUtils ( byte photoStreamBits ) : System

Initializes a new instance of the ExifUtils class.

GetOrientationFlag ( ) : int

Obtains the photo orientation field. For the valid values see the comment marked with "Photo Orientation field". If the photo orientation field cannot be obtained then it returns ExifUtils.UnknownOrientation.

Private Methods

Method Description
AdvanceToApplicationMarker ( int applicationMarkerId, long &cursor ) : void

Advances the cursor to the given Application Marker immediately after the marker id.

AdvanceToExifApplicationMarker ( long &cursor ) : void

Advances the cursor to the Exif Application Marker immediately after the marker id.

GetInt16BigEndian ( long &cursor ) : int
GetInt32BigEndian ( long &cursor ) : int
GetTagInfo ( int targetTagNumber, long cursor ) : ExifTagInfo

Identifies and returns data about a given tag in the Image File Directory area. The cursor must be at the start of the Image File Directory area.

InternalGetOrientationFlag ( ) : int

Obtains the photo orientation field. For the valid values see the comment marked with "Photo Orientation field". If the photo orientation field cannot be obtained then it throws a FormatException.

SkipStartOfImageMarker ( long &cursor ) : void

Method Details

ExifUtils() public method

Initializes a new instance of the ExifUtils class.
public ExifUtils ( byte photoStreamBits ) : System
photoStreamBits byte /// The content in byte array form of the photo stream. This is the photo stream as returned /// by CameraCaptureTask or PhotoChooserTask in their Completed events in the /// ChosenPhoto field of the PhotoResult event arg. ///
return System

GetOrientationFlag() public method

Obtains the photo orientation field. For the valid values see the comment marked with "Photo Orientation field". If the photo orientation field cannot be obtained then it returns ExifUtils.UnknownOrientation.
public GetOrientationFlag ( ) : int
return int