给你一段我的代码:
//Get two-dimension array's value at,,,,,,
//nWx: column
//nHy: row
//because of the character of bitmap, we should reverse the bitmap to get the pixel
byte & BitInfo::Get2DAt(int nWx, int nHy)
{
#ifdef _DEBUG
ASSERT(nWx<m_nWidth);
ASSERT(nWx>=0);
ASSERT(nHy<m_nHeight);
ASSERT(nHy>=0);
#endif