Ejemplo n.º 1
0
        public static Bitmap FromHbitmap(IntPtr hbitmap, IntPtr hpalette)
        {
            IntPtr imagePtr;
            Status st;

            st = GDIPlus.GdipCreateBitmapFromHBITMAP(hbitmap, hpalette, out imagePtr);

            GDIPlus.CheckStatus(st);
            return(new Bitmap(imagePtr));
        }