예제 #1
0
파일: ShxShape.cs 프로젝트: 15831944/WW
 private static int smethod_8(ShxShape.Class466 plotter, byte[] geometry, int offset)
 {
     if (plotter.method_0())
     {
         plotter.method_7((double)(sbyte)geometry[offset + 1], (double)(sbyte)geometry[offset + 2]);
     }
     return(3);
 }
예제 #2
0
파일: ShxShape.cs 프로젝트: 15831944/WW
        private static int smethod_9(ShxShape.Class466 plotter, byte[] geometry, int offset)
        {
            bool flag = plotter.method_0();
            int  index;

            for (index = offset + 1; geometry[index] != (byte)0 || geometry[index + 1] != (byte)0; index += 2)
            {
                if (flag)
                {
                    plotter.method_7((double)(sbyte)geometry[index], (double)(sbyte)geometry[index + 1]);
                }
            }
            return(index - offset + 2);
        }
예제 #3
0
파일: ShxShape.cs 프로젝트: 15831944/WW
        private void method_1(ShxShape.Class466 plotter)
        {
            int offset = 0;

            while (offset < this.byte_0.Length)
            {
                byte num1 = this.byte_0[offset];
                if (num1 < (byte)16)
                {
                    ShxShape.Delegate9 delegate9 = ShxShape.delegate9_0[(int)num1];
                    offset += delegate9(plotter, this.byte_0, offset);
                }
                else
                {
                    float    num2     = (float)((int)num1 >> 4 & 15);
                    Vector2D vector2D = ShxShape.vector2D_0[(int)num1 & 15];
                    if (plotter.method_0())
                    {
                        plotter.method_7((double)num2 * vector2D.X, (double)num2 * vector2D.Y);
                    }
                    ++offset;
                }
            }
        }