Пример #1
0
        static private double ReadPSDDouble(BinaryReverseReader br)
        {
            double val = br.ReadDouble();

            unsafe
            {
                BinaryReverseReader.SwapBytes((byte *)&val, 8);
            }
            return(val);
        }
Пример #2
0
        public double ReadPSDDouble(BinaryReverseReader br)
        {
            //TODO: examine PSD format!
            double val = br.ReadDouble();

            unsafe
            {
                BinaryReverseReader.SwapBytes((byte *)&val, 8);
            }
            return(val);
        }
Пример #3
0
 public Matrix2D(BinaryReverseReader r)
 {
     this.M11 = r.ReadDouble();
     this.M12 = r.ReadDouble();
     this.M13 = r.ReadDouble();
     this.M21 = r.ReadDouble();
     this.M22 = r.ReadDouble();
     this.M23 = r.ReadDouble();
 }
Пример #4
0
 public PsdUnitFloat(BinaryReverseReader stream)
 {
     unit  = Encoding.Default.GetString(stream.ReadBytes(4));
     value = stream.ReadDouble();
 }
Пример #5
0
 /**
  * Instantiates a new psd double.
  *
  * @param stream the stream
  * @throws IOException Signals that an I/O exception has occurred.
  */
 public PsdDouble(BinaryReverseReader stream)
 {
     value = stream.ReadDouble();
 }