示例#1
0
        /*public Transform2 Transform
         * {
         *  get
         *  {
         *      double[] m = new double[6];
         *      IntPtr raw=NativeCD.cdCanvasGetTransform(Handle);
         *      if (raw == IntPtr.Zero)
         *          return Transform2.Identity;
         *      Marshal.Copy(raw, m, 0, 6);
         *      return new Transform2(m[0], m[1], m[2], m[3], m[4], m[5]);
         *  }
         *
         *  set
         *  {
         *      if (value == null)
         *          value = Transform2.Identity;
         *      double[] m = new double[] { value.ax, value.ay, value.bx, value.by, value.tx, value.ty };
         *      NativeCD.cdCanvasTransform(Handle, ref m[0]);
         *  }
         * }*/

        public void MM2Pixel(int mm_dx, int mm_dy, out int dx, out int dy)
        {
            NativeCD.cdCanvasMM2Pixel(Handle, mm_dx, mm_dy, out dx, out dy);
        }