Пример #1
0
 /// <summary>
 /// Sets the horizontal and vertical extents of the viewport for a device context by using the specified values.
 /// </summary>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <param name="old"></param>
 public void SetViewportExtEx(int width, int height, WMFConverter.Gdi.Size old)
 {
     if (old != null)
     {
         old.Width  = _vw;
         old.Height = _vh;
     }
     _vw = width;
     _vh = height;
 }
Пример #2
0
 /// <summary>
 /// Sets the horizontal and vertical extents of the window for a device context by using the specified values.
 /// </summary>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <param name="old"></param>
 public void SetWindowExtEx(int width, int height, WMFConverter.Gdi.Size old)
 {
     if (old != null)
     {
         old.Width  = _ww;
         old.Height = _wh;
     }
     _ww = width;
     _wh = height;
 }
Пример #3
0
 /// <summary>
 /// Modifies the viewport for a device context using the ratios formed by the specified multiplicands and divisors.
 /// </summary>
 /// <param name="x"></param>
 /// <param name="xd"></param>
 /// <param name="y"></param>
 /// <param name="yd"></param>
 /// <param name="old"></param>
 public void ScaleViewportExtEx(int x, int xd, int y, int yd, WMFConverter.Gdi.Size old)
 {
     // TODO
     _vsx = (_vsx * x) / xd;
     _vsy = (_vsy * y) / yd;
 }
Пример #4
0
 /// <summary>
 /// Modifies the window for a device context using the ratios formed by the specified multiplicands and divisors.
 /// </summary>
 /// <param name="x"></param>
 /// <param name="xd"></param>
 /// <param name="y"></param>
 /// <param name="yd"></param>
 /// <param name="old"></param>
 public void ScaleWindowExtEx(int x, int xd, int y, int yd, WMFConverter.Gdi.Size old)
 {
     // TODO
     _wsx = (_wsx * x) / xd;
     _wsy = (_wsy * y) / yd;
 }