Beispiel #1
0
 public virtual string GetPixelAspectRatioString()
 {
     try
     {
         sbyte[] bytes = _directory.GetByteArray(PhotoshopDirectory.TagPixelAspectRatio);
         if (bytes == null)
         {
             return(null);
         }
         RandomAccessReader reader = new ByteArrayReader(bytes);
         double             d      = reader.GetDouble64(4);
         return(Sharpen.Extensions.ConvertToString(d));
     }
     catch (Exception)
     {
         return(null);
     }
 }
        public string GetPixelAspectRatioString()
        {
            try
            {
                var bytes = Directory.GetByteArray(PhotoshopDirectory.TagPixelAspectRatio);

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

                var reader = new ByteArrayReader(bytes);
                var d      = reader.GetDouble64(4);
                return(d.ToString("0.0##"));
            }
            catch
            {
                return(null);
            }
        }