Exemple #1
0
 internal static float RIL_CalculateZoom(IntPtr handle, IntPtr hwnd, Size size, DrawArgs drawArgs)
 {
     int num;
     try
     {
         num = NativeMethods.RIL_CalculateZoom(handle, hwnd, size, ref drawArgs._DrawArgs);
     }
     catch
     {
         throw new RILException();
     }
     if (num != 0)
     {
         throw new RILException(num);
     }
     return drawArgs._DrawArgs.Zoom;
 }
Exemple #2
0
 internal void Draw(Control control, Graphics graphics, DrawArgs drawArgs)
 {
     if (this._handle != IntPtr.Zero)
     {
         IntPtr hdc = graphics.GetHdc();
         Native.RIL_Draw(this._handle, control.Handle, control.Size, hdc, drawArgs);
         graphics.ReleaseHdc(hdc);
     }
 }
Exemple #3
0
 internal static void RIL_Draw(IntPtr handle, IntPtr hwnd, Size size, IntPtr hdc, DrawArgs drawArgs)
 {
     int num;
     try
     {
         num = NativeMethods.RIL_Draw(handle, hwnd, size, hdc, ref drawArgs._DrawArgs);
     }
     catch
     {
         throw new RILException();
     }
     if (num != 0)
     {
         throw new RILException(num);
     }
 }
Exemple #4
0
 internal float CalculateZoom(Control control, DrawArgs drawArgs)
 {
     if (this._handle != IntPtr.Zero)
     {
         return Native.RIL_CalculateZoom(this._handle, control.Handle, control.Size, drawArgs);
     }
     return 1f;
 }