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

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