private GetGridBytePoint ( long byteIndex ) : Point | ||
byteIndex | long | |
return | Point |
Point GetGridBytePoint(long byteIndex)
{
int row = (int)Math.Floor(byteIndex / (double)_iHexMaxHBytes);
int column = (int)(byteIndex + _iHexMaxHBytes - _iHexMaxHBytes * (row + 1));
Point res = new Point(column, row);
return res;
}
#endregion