Beispiel #1
0
        public BitmapPlus(HBITMAP hbm, IntPtr hpal)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Beispiel #2
0
        public BitmapPlus(HBITMAP hbm, IntPtr hpal)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

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