15,980
社区成员




char* CBitMap::DIB_Date()
{
int lo_w_byte = m_width*m_BytesPerPixel + (m_width % 4) ;
char* lo_p = new char[lo_w_byte*m_height];
int lo_i=0;
for(int lo_y = 0; lo_y < m_height ; lo_y++)
{
for(int lo_x = 0; lo_x < m_width ; lo_x++)
{
*(RGB*)(&(lo_p[lo_i])) = Context(lo_x,lo_y);
lo_i += m_BytesPerPixel;
}
lo_i += m_width % 4; }
return lo_p;
}