Exemplo n.º 1
0
        private static IGraphics CreateSurface(byte[] buffer, BitmapImageType type)
        {
            if (!Graphics.HasDrawing())
            {
                throw new NotSupportedException();
            }

            return(new Internal.Bitmap(buffer, type));
        }
Exemplo n.º 2
0
 extern public Bitmap(byte[] imageData, BitmapImageType type);
Exemplo n.º 3
0
 extern public Bitmap(byte[] imageData, BitmapImageType type);
Exemplo n.º 4
0
 public extern Bitmap(byte[] imageData, int offset, int count, BitmapImageType type);
Exemplo n.º 5
0
 internal Graphics(byte[] buffer, int offset, int count, BitmapImageType type) : this(Graphics.CreateSurface(buffer, offset, count, type), IntPtr.Zero)
 {
 }
Exemplo n.º 6
0
 internal Graphics(byte[] buffer, BitmapImageType type) : this(Graphics.CreateSurface(buffer, type), IntPtr.Zero)
 {
 }