Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[請益]這個c++的碼要怎麼改

0 views
Skip to first unread message

這不是我

unread,
Mar 26, 2005, 1:10:14 PM3/26/05
to
void CHW1View::DownTo8Bit (){
int i, j, jSub;

//fill the palette
for(i=0; i<256; i++){
m_pArrPalette[i].rgbBlue = i;
m_pArrPalette[i].rgbGreen = i;
m_pArrPalette[i].rgbRed = i;
}

//down sample to 8 bits
for(i=0; i<m_pRawDataOutput->m_row; i++){
for(j=0, jSub=0; j<m_pRawDataOutput->m_col; j++, jSub+=3){
m_pRawDataOutput->m_ppMem[i][j] = (m_pRawDataInput->m_ppMem[i][jSub] +
m_pRawDataInput->m_ppMem[i][jSub+1] +
m_pRawDataInput->m_ppMem[i][jSub+2])/3;


要怎麼改成彩色的8bit的輸出圖檔呢??:( 想破頭 不知怎麼改

謝謝
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: u921009.HUI.ab.nthu.edu.tw

href="http://thenewbonswald.info/"/aadmin@thenewbonswald.info Hi there! Nice site! I like it very much. Vizit my one - lightsabers

unread,
Jul 24, 2006, 11:21:40 AM7/24/06
to

--
Hi there! Nice site! I like it very much. Vizit my one - <a href="http://thenewbonswald.info/">lightsabers</a>
--
ASPNET News Reader http://tlcheng.twbbs.org/News/Reader.aspx
RSS 2.0 http://tlcheng.twbbs.org/News/rss2.aspx?Action=List&Newsgroup=tw.bbs.comp.oop

Yo

unread,
Jul 24, 2006, 1:35:32 PM7/24/06
to

--
Yo, people! I like this place. Goto my page - [url="http://oriental-rug.501megs.com/"]oriental rug[/url].

.

unread,
Jul 26, 2006, 1:27:14 PM7/26/06
to

--
. , -. , ... [url=http://fun.xxx-eros.info]porno[/url] :(
0 new messages