Ejemplo n.º 1
0
        public Bitmap(int width, int height, PixelFormat format)
        {
            IntPtr bmp;
            Status s = GDIPlus.GdipCreateBitmapFromScan0(width, height, 0, format, IntPtr.Zero, out bmp);

            GDIPlus.CheckStatus(s);
            nativeObject = bmp;
        }
Ejemplo n.º 2
0
        public Bitmap(int width, int height, int stride, PixelFormat format, IntPtr scan0)
        {
            IntPtr bmp;

            Status status = GDIPlus.GdipCreateBitmapFromScan0(width, height, stride, format, scan0, out bmp);

            GDIPlus.CheckStatus(status);
            nativeObject = bmp;
        }