This is a discussion on Re: System.Drawing.Icon and hIcon (ptr to an ICONIMAGE structure) - DOTNET ; Fast-forward to months later... It turns out that it wasn't me after all! I knew I wasn't crazy. It appears to be a bug in GDI+. I had gone to the trouble of reconstructing System.Drawing.Icon from the ground up to ...
Fast-forward to months later...
It turns out that it wasn't me after all! I knew I wasn't crazy. It
appears to be a bug in GDI+. I had gone to the trouble of reconstructing
System.Drawing.Icon from the ground up to see where my problem was
(Using Lutz Roeder's Reflector). Still had the same problem. Then I went
simpler. I created an Icon (.ico) file with a single monochrome, 16 x 16
frame. I ran the following code:
Dim ico As New System.Drawing.Icon("..\..\monochrome.ico")
Me.PictureBox1.Image = ico.ToBitmap()
Voila! The monochrome icon is produced at twice the height!
After months of coming back and screweing with this project, it turns
out to be a Microsoft issue! Bug in GDI+!
Oy vey!
Sometimes the greatest solutions come from the simplest logic.
Being told "No" is merely the incentive to do it anyway.
*** Sent via Developersdex http://www.developersdex.com ***