Example #1
0
        public BitmapPlus(string filename)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Example #2
0
        public BitmapPlus(string filename)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

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

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Example #4
0
        public BitmapPlus(IStream stream)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
Example #5
0
        public BitmapPlus(IStream stream)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

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

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

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

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

            SetNativeImage((IntPtr)nativeBitmap);
        }