Esempio n. 1
0
        public BitmapPlus(string filename)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromFileICM(filename, out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 2
0
        public BitmapPlus(string filename)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromFileICM(filename, out bitmap);

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

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 4
0
        public BitmapPlus(IStream stream)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromStreamICM(stream, out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 5
0
        public BitmapPlus(IStream stream)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromStreamICM(stream, out bitmap);

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

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 7
0
        public BitmapPlus(int width, int height, GraphicsPlus target)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromGraphics(width,
                                                              height,
                                                              target.nativeGraphics,
                                                              out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 8
0
        public BitmapPlus(int width, int height, GraphicsPlus target)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromGraphics(width,
                                                                  height,
                                                                  target.nativeGraphics,
                                                                  out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 9
0
        public BitmapPlus(int width, int height, PixelFormat format)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromScan0(width,
                                                           height,
                                                           0,
                                                           format,
                                                           IntPtr.Zero,
                                                           out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 10
0
        public BitmapPlus(int width, int height, PixelFormat format)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

            lastResult = GdiPlus.GdipCreateBitmapFromScan0(width,
                                                               height,
                                                               0,
                                                               format,
                                                               IntPtr.Zero,
                                                               out bitmap);

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Esempio n. 11
0
 internal static extern GpStatus GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);
Esempio n. 12
0
 internal static extern GpStatus GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
     out HBITMAP hbmReturn,
     int background);
Esempio n. 13
0
 internal static extern GpStatus GdipCreateBitmapFromHBITMAP(IntPtr hbm,
     IntPtr hpal,
     out GpBitmap bitmap);
Esempio n. 14
0
 internal static extern GpStatus GdipCreateBitmapFromScan0(int width,
     int height,
     int stride,
     PixelFormat format,
     IntPtr scan0,
     out GpBitmap bitmap);
Esempio n. 15
0
 GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
                             out HBITMAP hbmReturn,
                             int background);
Esempio n. 16
0
 internal static extern GpStatus GdipCreateBitmapFromGraphics(int width,
     int height,
     GpGraphics target,
     out GpBitmap bitmap);
Esempio n. 17
0
 internal static extern GpStatus GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);
Esempio n. 18
0
 internal static extern GpStatus GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);
Esempio n. 19
0
 GdipCreateBitmapFromScan0(int width,
                           int height,
                           int stride,
                           PixelFormat format,
                           IntPtr scan0,
                           out GpBitmap bitmap);
Esempio n. 20
0
 internal static extern GpStatus GdipBitmapLockBits(GpBitmap bitmap,
     Rectangle rect,
     uint flags,
     PixelFormat format,
     BitmapData lockedBitmapData);
Esempio n. 21
0
 GdipCreateBitmapFromGraphics(int width,
                              int height,
                              GpGraphics target,
                              out GpBitmap bitmap);
Esempio n. 22
0
 GdipBitmapUnlockBits(GpBitmap bitmap,
                      BitmapData lockedBitmapData);
Esempio n. 23
0
 GdipBitmapLockBits(GpBitmap bitmap,
                    Rectangle rect,
                    uint flags,
                    PixelFormat format,
                    BitmapData lockedBitmapData);
Esempio n. 24
0
        public BitmapPlus(GpBitmap nativeBitmap)
        {
            lastResult = GpStatus.Ok;

            SetNativeImage((IntPtr)nativeBitmap);
        }
Esempio n. 25
0
 internal static extern GpStatus GdipBitmapUnlockBits(GpBitmap bitmap,
     BitmapData lockedBitmapData);
Esempio n. 26
0
 internal static extern GpStatus GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);
Esempio n. 27
0
 internal static extern GpStatus GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);
Esempio n. 28
0
 GdipBitmapGetPixel(GpBitmap bitmap, int x, int y, out int color);
Esempio n. 29
0
 GdipCreateBitmapFromHBITMAP(IntPtr hbm,
                             IntPtr hpal,
                             out GpBitmap bitmap);
Esempio n. 30
0
 GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);
Esempio n. 31
0
        public BitmapPlus(GpBitmap nativeBitmap)
        {
            lastResult = GpStatus.Ok;

            SetNativeImage((IntPtr)nativeBitmap);
        }