Пример #1
0
        /// <summary>
        ///  Modifies the viewport origin for a device context using the specified horizontal and vertical offsets in logical units.
        /// </summary>
        public void TranslateTransform(int dx, int dy)
        {
            Point origin = new Point();

            IntUnsafeNativeMethods.OffsetViewportOrgEx(new HandleRef(this, Hdc), dx, dy, ref origin);
        }
Пример #2
0
 public void TranslateTransform(int dx, int dy)
 {
     IntNativeMethods.POINT point = new IntNativeMethods.POINT();
     IntUnsafeNativeMethods.OffsetViewportOrgEx(new HandleRef(this, this.Hdc), dx, dy, point);
 }