* System.Drawing/Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
* System.Drawing/gdipFunctions.cs: Add the quartz dllimport into libgdiplus
svn path=/trunk/mcs/; revision=37365
+2004-11-07 Geoff Norton <gnorton@customerdna.com>
+
+ * System.Drawing/Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
+ * System.Drawing/gdipFunctions.cs: Add the quartz dllimport into libgdiplus
+
2004-11-22 Ravindra <rkumar@novell.com>
* SD.csproj: Removed a wrong entry from files list.
return null;
}
+ public static Graphics FromHwndWithSize (IntPtr hwnd, int width, int height) {
+ IntPtr graphics;
+ Status s = GDIPlus.GdipCreateFromQuartz_macosx (hwnd, width, height, out graphics);
+ GDIPlus.CheckStatus (s);
+ return new Graphics (graphics);
+ }
+
[EditorBrowsable (EditorBrowsableState.Advanced)]
public static Graphics FromHwnd (IntPtr hwnd)
{
}
return FromXDrawable (hwnd, display);
+
}
Status status = GDIPlus.GdipCreateFromHWND (hwnd, out graphics);
}
+ /* Mac only function calls */
+ [DllImport("gdiplus.dll")]
+ internal static extern Status GdipCreateFromQuartz_macosx (IntPtr cgref, int width, int height, out IntPtr graphics);
+
/* Linux only function calls*/
[DllImport("gdiplus.dll")]
internal static extern Status GdipSetVisibleClip_linux (IntPtr graphics, ref Rectangle rect);