Exemple #1
0
        protected void ParseEPS(Stream m_Stream)
        {
            StreamReader reader1 = new StreamReader(m_Stream, Encoding.ASCII);

            reader1.ReadLine();
            string text1 = reader1.ReadLine();

            reader1           = null;
            m_Stream.Position = ((long)0);
            NumberFormatInfo info1 = new NumberFormatInfo();

            info1.NumberDecimalSeparator = ".";
            string text2 = text1.Remove(0, 15);

            char[] chArray1 = new char[1];
            chArray1[0] = ' ';
            string[] textArray1 = text2.Split(chArray1);
            Rect     rect1      = new Rect(double.Parse(textArray1[0], info1), double.Parse(textArray1[1], info1), double.Parse(textArray1[2], info1), double.Parse(textArray1[3], info1));

            this.m_Width         = rect1.Width;
            this.m_Height        = rect1.Height;
            this.resourceSupport = rect1;
            this.resource        = XObjectPS.Create(m_Stream);
        }
Exemple #2
0
 protected void ParsePS(Stream m_Stream)
 {
     this.resource = XObjectPS.Create(m_Stream);
 }