コード例 #1
0
ファイル: Native.cs プロジェクト: north0808/haina
 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;
 }
コード例 #2
0
ファイル: CompactImage.cs プロジェクト: north0808/haina
 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);
     }
 }
コード例 #3
0
ファイル: Native.cs プロジェクト: north0808/haina
 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);
     }
 }
コード例 #4
0
ファイル: CompactImage.cs プロジェクト: north0808/haina
 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;
 }