Bitmap problem
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
-
Hello, I would like to know, how could i restore the each and every pixel value of a picture in an edit box? unsigned char value; CString m_strbpp; for(i=1;i<100;i=i+1) for(j=1;j<100;j=j+1) { value=B.GetPixel32(i,j); m_strbpp.Format("%d",value); }
COLORREF colorref; BYTE r,g,b; for(int i=0;i<20;i++) for(int j=0;j<20;j++) { colorref=GetPixel(hdc,i,j); r=GetRValue(colorref); g=GetGValue(colorref); b=GetBValue(colorref); CString str; str.Format("r=%d,g=%d,b=%d",r,g,b); m_Edit.SetWindowText(str); }