freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

多媒體編程基礎(chǔ)課程綜合作業(yè)說(shuō)明書(shū)(編輯修改稿)

2025-07-19 03:40 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 *sharpLaplacian[index]。 index++。 } } if(rr255) rr=255。 else if(rr0) rr=rr。 if(gg255) gg=255。 else if(gg0) gg=gg。 if(bb255) bb=255。 else if(bb0) bb=bb。 pDCSetPixelV(i,j,RGB(rr,gg,bb))。 } }}給“浮雕”按鈕添加單擊響應(yīng),代碼如下:void Picture::Onfudiao() { // TODO: Add your control notification handler code here CStatic *pStatic=(CStatic * )GetDlgItem(IDC_DRAW)。 CDC *pDC=pStaticGetDC()。 CRect rect。 pStaticGetClientRect(amp。rect)。 COLORREF color1,color2。 BYTE r,g,b。 for(int i=0。i。i++) for (int j=0。j。j++) { color1=pDCGetPixel(i,j)。 color2=pDCGetPixel(i+1,j+1)。 r=GetRValue(color1)GetRValue(color2)+128。 g=GetGValue(color1)GetGValue(color2)+128。 b=GetBValue(color1)GetBValue(color2)+128。 if(r255) r=255。 else if (r0) r=0。 else if(g255) g=255。 else if (g0) g=0。 else if(b255) b=255。 else if (b0) b=0。 pDCSetPixel(i,j,RGB(r,g,b))。 } }給“反色”按鈕添加單擊響應(yīng),代碼如下:void Picture::Onfanse() { // TODO: Add your control notification handler code here CStatic *pStatic=(CStatic * )GetDlgItem(IDC_DRAW)。 CDC *pDC=pStaticGetDC()。 CRect rect。 pStaticGetClientRect(amp。rect)。 BYTE r,g,b。 COLORREF m_clr。 for (int x=0。x()。x++) { for (int y=0。y()。y++) { m_clr=pDCGetPixel(x,y)。 r=GetRValue(m_clr)。 g=GetGValue(m_clr)。 b=GetBValue(m_clr)。 r=abs(255r)。 g=abs(255g)。 b=abs(255b)。 pDCSetPixel(x,y,RGB(r,g,b))。 } }}給“輪廓”按鈕添加單擊響應(yīng),代碼如下:void Picture::Onlunkuo() { // TODO: Add your control notification handler code here CStatic *pStatic=(CStatic * )GetDlgItem(IDC_DRAW)。 //pStaticGetClientRect(lp)。 CDC *pDC=pStaticGetDC()。 CRect rect。 pStaticGetClientRect(amp。rect)。 int x,y。 for (x = 0。x。x++) for (y=0。y。y++) { COLORREF m_color。 m_color = pDCGetPixel(x,y)。 if ((m_color ==RGB(255,255,255))||(m_color==RGB(0,0,0))||(m_color == RGB(252,197,30))) { pDCSetPixel(x,y,m_color)。 }else pDCSetPixel(x,y,RGB(255,255,255))。 }}給“雜色”按鈕添加單擊響應(yīng),代碼如下:void Picture::Onzase() { // TODO: Add your control notification handler code here CStatic *pStatic=(CStatic * )GetDlgItem(IDC_DRAW)。 CDC *pDC=pStaticGetDC()。 CRect rect。 pStaticGetClientRect(amp。rect)。 int r,g,b。 for(int i=0。i。i++) { int *a。 int num=rand()%(*2/5)。 a=new int[num]。 for (int j=0。jnum。j++) { a[j]=rand()%。 r=rand()%255。 g=rand()%255。 b=rand()%255。 pDCSetPixel(i,a[j],RGB(r,g,b))。 } }}實(shí)現(xiàn)顯示鼠標(biāo)處的顏色:添加MouseMoveh函數(shù)響應(yīng)void Picture::OnMouseMove(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CWnd* temp=ChildWindowFromPoint(point)。 CDC* m_DC=tempGetDC()。 COLORREF m_color1。 thisMapWindowPoints(temp,amp。point,1)。 m_color1=m_DCGetPixel(point)。 int r,g,b。 r=GetRValue(m_color1)。 g=GetGValue(m_color1)。 b=GetBValue(m_color1)。 CString str。 (%d,r)。 CEdit *edit。 edit=(CEdit *)GetDlgItem(IDC_RED)。 editSetWindowText(str)。 edit=(CEdit *)GetDlgItem(IDC_GREEN)。 (%d,g)。 editSetWindowText(str)。 edit=(CEdit *)GetDlgItem(IDC_BLUE)。 (%d,b)。 editSetWindowText(str)。 CRect rc。 (rc)。 CDC* dc = ()。 CBrush br(RGB(r,g,b))。 dcFillRect(rc,amp。br)。 CDialog::OnMouseMove(nFlags, point)。}(3)文字處理文字處理設(shè)計(jì)框架圖:文字處理界面傾斜下劃線空心字文字漸變旋轉(zhuǎn)字體3D顯示設(shè)計(jì)界面:直接在對(duì)話框里繪制,沒(méi)有什么插件在OnPaint()添加如下代碼:void Word::OnPaint() { CPaintDC dc(this)。 // device context for painting // TODO: add draw code for native data here xuanzhuan()。 sanD()。 jianbianyanse()。 SetTimer(1,500,NULL)。 qingxie()。 kongxinzi()。 // Do not call CDialog::OnPaint() for painting messages}xuanzhuan()函數(shù)代碼如下:void Word::xuanzhuan(){ CDC* pDC=GetDC()。 CFont m_font。 pDCSetBkMode(TRANSPARENT)。//透明的 CRect m_rect。 GetClientRect(m_rect)。 pDCFillRect(m_rect,NULL)。 pDCSetViewportOrg(()/2,()/2)。 for(int i=1。i360。i+=18) { (14,10,i*10,0,600,0,0,0,0,0,0,0,0,宋體)。 pDCSelectObject(m_font)。 pDCTextOut(0,0,多媒體編程軟件技術(shù))。 pDCSetTextColor(RGB(255i,i*250,i+50))。 ()。 }}jianbianyanse()函數(shù)代碼如下:void Word::jianbianyanse(){ CDC* pDC=GetDC()。 CFont font。 (600,黑體,pDC)。 CFont* pOldFont=pDCSelectObject(amp。font)。 CString str((文字顏色漸變))。 pDCSetTextColor(RGB(m_nRed,m_nGreen,m_nBlue))。 pDCTextOut(0,0,str)。 pDCSelectObject(pOldFont)。}qingxie()函數(shù)代碼如下:void Word::qingxie(){ CDC* pDC=GetDC()。 CRect rect。 //獲取客戶區(qū) GetClientRect(amp。rect)。 CFont mFont。 LOGFONT lFont。 //創(chuàng)建LOGFONT結(jié)構(gòu)體 ZeroMemory(amp。lFont, sizeof(lFont))。 //為其參數(shù)賦值 =30。 //邏輯高度 =30。 //邏輯寬度 =1。 //下劃線 =0。 //刪除線 =1。 //加粗 =1。 //傾斜 lstrcpy(, _T(楷體))。 (amp。lFont)。//依據(jù)LOGFONT創(chuàng)建字體 pDCSelectObject(mFont)。 pDCSetTextColor(RGB(0,0,255))。 pDCTextOut(0,100,軟件101劉洋)。 ()。 pDCSelectObject(mFont)。 }kongxinzi()函數(shù)代碼如下:void Word::kongxinzi(){ CDC* pDC=GetDC()。 CRect rect。 //獲取客戶區(qū) GetClientRect(amp。rect)。 CFont mFont。 CString m_CText=多媒體編程軟件技術(shù)。 VERIFY((60,30,0,0,FW_HEAVY,TRUE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_SWISS,宋體))。 //創(chuàng)建字體 CPen pen(PS_SOLID,2,RGB(255,0,0))。 pDCSelectObject(amp。pen)。 pDCBeginPath()。 //開(kāi)始路徑 CFont *pOldFont=pDCSelectObject(amp。mFont)。 //選中創(chuàng)建的字體 pDCSetBkMode(TRANSPARENT)。 //設(shè)置設(shè)備背景模式為透明 pDCTextOut(0,350,m_CText)。 //輸出文字 pDCEndPath()。 //關(guān)閉路徑 pDCStrokePath()。 //用當(dāng)前字體繪制路徑 ()。//刪除字體對(duì)象 pDCSelectObject(pOldFont)。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1