public BitmapTexture(Bitmap bitmap, BitmapTextureMode mode) { _bitmap = bitmap ?? throw new ArgumentNullException(nameof(bitmap)); _mode = mode; _width = _bitmap.Width; _height = _bitmap.Height; }
public BitmapTexture(string fileName, BitmapTextureMode mode) : this(new Bitmap(fileName), mode) { }