public void Create(Bitmap bitmap) { if (bitmap == null) { throw new ArgumentNullException("bitmap"); } // Create image from bitmap Image image = CoreImagingImageCodecPlugin.LoadFromBitmap(bitmap, new ImageCodecCriteria()); // Bitmaps must be flipped image.FlipVertically(); // Create with Image as usual Create(image); }
public void Create(Bitmap bitmap) { if (bitmap == null) { throw new ArgumentNullException("bitmap"); } if (ImmutableFix) { throw new InvalidOperationException("immutable storage (see GL_ARB_texture_storage)"); } // Create image from bitmap Image image = CoreImagingImageCodecPlugin.LoadFromBitmap(bitmap, new ImageCodecCriteria()); // Bitmaps must be flipped image.FlipVertically(); // Create with Image as usual Create(image); }