Exemplo n.º 1
0
        public BitmapPlus(HBITMAP hbm, IntPtr hpal)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromHBITMAP(hbm, hpal, out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Exemplo n.º 2
0
        public BitmapPlus(HBITMAP hbm, IntPtr hpal)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromHBITMAP(hbm, hpal, out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Exemplo n.º 3
0
 public BitmapPlus FromHBITMAP(HBITMAP hbm, IntPtr hpal)
 {
     return new BitmapPlus(hbm, hpal);
 }
Exemplo n.º 4
0
 internal static extern GpStatus GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
     out HBITMAP hbmReturn,
     int background);
Exemplo n.º 5
0
 GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
                             out HBITMAP hbmReturn,
                             int background);
Exemplo n.º 6
0
 public BitmapPlus FromHBITMAP(HBITMAP hbm, IntPtr hpal)
 {
     return(new BitmapPlus(hbm, hpal));
 }