public SetPixelSlow ( int col, int row, byte red, byte green, byte blue, byte alpha ) : void | ||
col | int | |
row | int | |
red | byte | |
green | byte | |
blue | byte | |
alpha | byte | |
return | void |
public void SetPixelSlow(int col, int row, byte red, byte green, byte blue, byte alpha)
{
int start = _rowLength * row + col * 4 + 1;
int blockNum = start / _blockSize;
start += ((blockNum + 1) * 5);
start += _dataStart;
_buffer[start] = red;
_buffer[start + 1] = green;
_buffer[start + 2] = blue;
_buffer[start + 3] = alpha;
}