コード例 #1
0
        private unsafe void Initialize(int width, int height)
        {
            _width  = width;
            _height = height;

            _pixelsCount = _width * _height;
            _bytesCount  = _pixelsCount * 4;

            _buffer = new int[_pixelsCount];

            _renderer = new PixelBufferManagedRenderer(this);

            //_graphics = new PixelBufferGraphics(this);
            _graphics = new PixelBufferManagedGraphics(this);
        }
コード例 #2
0
ファイル: PixelBuffer.cs プロジェクト: westybsa/MP.LSharp
        private unsafe void Initialize(int width, int height)
        {
            _width = width;
            _height = height;

            _pixelsCount = _width * _height;
            _bytesCount = _pixelsCount * 4;

            _buffer = new int[_pixelsCount];

            _renderer = new PixelBufferManagedRenderer(this);

            //_graphics = new PixelBufferGraphics(this);
            _graphics = new PixelBufferManagedGraphics(this);
            
        }