private static double? ParseCoordinate( BitmapMetadata metadata, string coordinateQuery, string directionQuery, string invertDirection ) { var coordinates = metadata.ReadULongArray( coordinateQuery ); if ( coordinates != null ) { var coordinate = ConvertCoordinate( coordinates ); var direction = metadata.ReadString( directionQuery ); if ( direction == invertDirection ) { coordinate = -coordinate; } return coordinate; } return null; }
private static double?ParseCoordinate(BitmapMetadata metadata, string coordinateQuery, string directionQuery, string invertDirection) { var coordinates = metadata.ReadULongArray(coordinateQuery); if (coordinates != null) { var coordinate = ConvertCoordinate(coordinates); var direction = metadata.ReadString(directionQuery); if (direction == invertDirection) { coordinate = -coordinate; } return(coordinate); } return(null); }