private static double? ParseAltitude( BitmapMetadata metadata ) { var altitude = metadata.ReadUnsignedRational( AltitudeQuery ); if( ! altitude.HasValue ) { return null; } var altitudeReference = metadata.ReadByte( AltitudeReferenceQuery ); if( altitudeReference.HasValue && altitudeReference.Value == 1 ) { altitude = -altitude; } return altitude; }
private static double?ParseAltitude(BitmapMetadata metadata) { var altitude = metadata.ReadUnsignedRational(AltitudeQuery); if (!altitude.HasValue) { return(null); } var altitudeReference = metadata.ReadByte(AltitudeReferenceQuery); if (altitudeReference.HasValue && altitudeReference.Value == 1) { altitude = -altitude; } return(altitude); }
private static ExifGpsMeasureMode ParseMeasureMode( BitmapMetadata metadata ) { var measureMode = metadata.ReadByte( MeasureModeQuery ); return measureMode.HasValue ? (ExifGpsMeasureMode) measureMode.Value : ExifGpsMeasureMode.Unknown; }
private static ExifGpsMeasureMode ParseMeasureMode(BitmapMetadata metadata) { var measureMode = metadata.ReadByte(MeasureModeQuery); return(measureMode.HasValue ? (ExifGpsMeasureMode)measureMode.Value : ExifGpsMeasureMode.Unknown); }