[Mono-bugs] [Bug 76281][Nor] Changed - Bitmap.GetHicon not implemented.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 2 07:48:16 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jordi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76281

--- shadow/76281	2005-09-29 17:48:23.000000000 -0400
+++ shadow/76281.tmp.25204	2005-10-02 07:48:16.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 76281
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.Drawing.
 AssignedTo: jordi at ximian.com                            
 ReportedBy: miguel at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -21,6 +21,40 @@
 This routine is typically used like this:
 
             Bitmap bitmap = new Bitmap(image);
             Icon icon = Icon.FromHandle(bitmap.GetHicon());
 
 Not really to interoperate externally, but to create icons from bitmaps.
+
+------- Additional Comments From jordi at ximian.com  2005-10-02 07:48 -------
+All the functions that use or create Win32 handles are not yet
+implemented  (except for window and device) need in System.Windows.Forms.
+
+This is the list of functions that use handles:
+
+GdipCreateBitmapFromHBITMAP
+GdipCreateHBITMAPFromBitmap
+GdipCreateBitmapFromHICON
+GdipCreateHICONFromBitmap
+GdipCreateBitmapFromResource
+GdipCreateFontFromDC
+GdipCreateFontFromHfont
+GdipGetLogFontA
+GdipSetClipHrgn
+GdipCreateFromHWND
+GdipGetRegionDataSize
+GdipGetRegionData
+
+Most of them are used to connect GDI+ with the regular Win32 API.
+
+My suggestion is to implement only these for now:
+
+GdipCreateBitmapFromHBITMAP
+GdipCreateHBITMAPFromBitmap
+GdipCreateBitmapFromHICON
+GdipCreateHICONFromBitmap
+
+I'm going to this on next Monday. 
+
+Jordi,
+
+


More information about the mono-bugs mailing list