private static decimal? ParseGpsVersion( BitmapMetadata metadata )
        {
            var version = metadata.ReadUShortArray( GpsVersionQuery );
            if( version == null )
            {
                return null;
            }

            return version.Select( ( t, i ) => (decimal) Math.Pow( 10, -i ) * t ).Sum();
        }
Beispiel #2
0
        private static decimal?ParseGpsVersion(BitmapMetadata metadata)
        {
            var version = metadata.ReadUShortArray(GpsVersionQuery);

            if (version == null)
            {
                return(null);
            }

            return(version.Select((t, i) => (decimal)Math.Pow(10, -i) * t).Sum());
        }