Beispiel #1
0
        public static Bitmap FromHicon(IntPtr hicon)
        {
            IntPtr bitmap = IntPtr.Zero;
            int    status = Gdip.GdipCreateBitmapFromHICON(new HandleRef(null, hicon), out bitmap);

            Gdip.CheckStatus(status);

            return(new Bitmap(bitmap));
        }
Beispiel #2
0
 public static Bitmap FromHicon(IntPtr hicon)
 {
     Gdip.CheckStatus(Gdip.GdipCreateBitmapFromHICON(hicon, out IntPtr bitmap));
     return(new Bitmap(bitmap));
 }