下面的大牛能否解释下呢switch( m_bitCnt )\x05{\x05case 1:\x05\x05//Monochrome\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x/8) & (0x80 >> _x%8) ];\x05\x05break;\x05case 4:\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 10:20:44
下面的大牛能否解释下呢switch( m_bitCnt )\x05{\x05case 1:\x05\x05//Monochrome\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x/8) & (0x80 >> _x%8) ];\x05\x05break;\x05case 4:\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y
x){Eg<]y{NXb]@g$gh('e8(hTVTC+}3sSabEIAť9% j9E Z`;UkW j  vv@U@5Ȥlk&VdeTO`Ua'4j$(B9&V[mZ#BPS Mʠ"̀(-(({ P-FpBJinn%n- &>41)I-BTN!200t&ba1@V`djcNPj .g 14Pb J|`Iirw u$ƚ#؈r{Lۣ_`g3g v>]/AѰGܥ/vYpsQdg3ֿ?ɎUONb=Ov~,;zzz >_yOzaӾtѓ˞NXg_\g"r

下面的大牛能否解释下呢switch( m_bitCnt )\x05{\x05case 1:\x05\x05//Monochrome\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x/8) & (0x80 >> _x%8) ];\x05\x05break;\x05case 4:\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y
下面的大牛能否解释下呢
switch( m_bitCnt )
\x05{
\x05case 1:\x05\x05//Monochrome
\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x/8) & (0x80 >> _x%8) ];
\x05\x05break;
\x05case 4:
\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x/2) & ((_x&1) 0x0f :0xf0) ];
\x05\x05break;
\x05case 8:
\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x) ];
\x05\x05break;
\x05case 16:
\x05\x05{
\x05\x05\x05WORD dummy = *(LPWORD)(m_bits + m_rowBytes*_y + _x*2);
\x05\x05\x05tempRgbResult.rgbBlue = (BYTE)(0x001F & dummy);
\x05\x05\x05tempRgbResult.rgbGreen = (BYTE)(0x001F & (dummy >> 5));
\x05\x05\x05tempRgbResult.rgbRed = (BYTE)(0x001F & dummy >> 10 );
\x05\x05\x05rgbResult = &tempRgbResult;
\x05\x05}
\x05\x05break;
\x05case 24:
\x05\x05rgbResult = (LPRGBQUAD)(m_bits + m_rowBytes*_y + _x*3);
\x05\x05break;
\x05case 32:
\x05\x05rgbResult = (LPRGBQUAD)(m_bits + m_rowBytes*_y + _x*4);
\x05\x05break;

下面的大牛能否解释下呢switch( m_bitCnt )\x05{\x05case 1:\x05\x05//Monochrome\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y + _x/8) & (0x80 >> _x%8) ];\x05\x05break;\x05case 4:\x05\x05rgbResult = &m_colors[ *(m_bits + m_rowBytes*_y
根据m_bitCnt变量的值.来赋值rgbResult变量的值.大体是这个功能.
楼主要是连switch...case...语句都不会就去看看书吧.