示例#1
0
        public BitmapTexture(Bitmap bitmap, BitmapTextureMode mode)
        {
            _bitmap = bitmap ?? throw new ArgumentNullException(nameof(bitmap));
            _mode   = mode;

            _width  = _bitmap.Width;
            _height = _bitmap.Height;
        }
示例#2
0
 public BitmapTexture(string fileName, BitmapTextureMode mode)
     : this(new Bitmap(fileName), mode)
 {
 }