コード例 #1
0
ファイル: BitmapPlus.cs プロジェクト: north0808/haina
        public BitmapPlus(string filename)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

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

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

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

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
コード例 #4
0
ファイル: BitmapPlus.cs プロジェクト: north0808/haina
        public BitmapPlus(IStream stream)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

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

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
コード例 #6
0
ファイル: BitmapPlus.cs プロジェクト: north0808/haina
        public BitmapPlus(HBITMAP hbm, IntPtr hpal)
        {
            Initialize();
            GpBitmap bitmap = new GpBitmap();

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

            SetNativeImage((GpImage)(IntPtr)bitmap);
        }
コード例 #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);
        }
コード例 #8
0
ファイル: BitmapPlus.cs プロジェクト: north0808/haina
        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);
        }
コード例 #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);
        }
コード例 #10
0
ファイル: BitmapPlus.cs プロジェクト: north0808/haina
        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);
        }
コード例 #11
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);
コード例 #12
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
     out HBITMAP hbmReturn,
     int background);
コード例 #13
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipCreateBitmapFromHBITMAP(IntPtr hbm,
     IntPtr hpal,
     out GpBitmap bitmap);
コード例 #14
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipCreateBitmapFromScan0(int width,
     int height,
     int stride,
     PixelFormat format,
     IntPtr scan0,
     out GpBitmap bitmap);
コード例 #15
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
                             out HBITMAP hbmReturn,
                             int background);
コード例 #16
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipCreateBitmapFromGraphics(int width,
     int height,
     GpGraphics target,
     out GpBitmap bitmap);
コード例 #17
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);
コード例 #18
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 internal static extern GpStatus GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);
コード例 #19
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipCreateBitmapFromScan0(int width,
                           int height,
                           int stride,
                           PixelFormat format,
                           IntPtr scan0,
                           out GpBitmap bitmap);
コード例 #20
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipBitmapLockBits(GpBitmap bitmap,
     Rectangle rect,
     uint flags,
     PixelFormat format,
     BitmapData lockedBitmapData);
コード例 #21
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipCreateBitmapFromGraphics(int width,
                              int height,
                              GpGraphics target,
                              out GpBitmap bitmap);
コード例 #22
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipBitmapUnlockBits(GpBitmap bitmap,
                      BitmapData lockedBitmapData);
コード例 #23
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipBitmapLockBits(GpBitmap bitmap,
                    Rectangle rect,
                    uint flags,
                    PixelFormat format,
                    BitmapData lockedBitmapData);
コード例 #24
0
ファイル: BitmapPlus.cs プロジェクト: north0808/haina
        public BitmapPlus(GpBitmap nativeBitmap)
        {
            lastResult = GpStatus.Ok;

            SetNativeImage((IntPtr)nativeBitmap);
        }
コード例 #25
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipBitmapUnlockBits(GpBitmap bitmap,
     BitmapData lockedBitmapData);
コード例 #26
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 internal static extern GpStatus GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);
コード例 #27
0
ファイル: Bitmaps.cs プロジェクト: north0808/haina
 internal static extern GpStatus GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);
コード例 #28
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipBitmapGetPixel(GpBitmap bitmap, int x, int y, out int color);
コード例 #29
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipCreateBitmapFromHBITMAP(IntPtr hbm,
                             IntPtr hpal,
                             out GpBitmap bitmap);
コード例 #30
0
ファイル: Bitmaps.cs プロジェクト: windygu/haina
 GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);
コード例 #31
0
        public BitmapPlus(GpBitmap nativeBitmap)
        {
            lastResult = GpStatus.Ok;

            SetNativeImage((IntPtr)nativeBitmap);
        }