コード例 #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
ファイル: TypeToolObject.cs プロジェクト: timgaunt/resizer
 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();
 }