How to get the pixel values of character drawn inside rectangle present on dialog in vc++,mfc
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
i want to get the pixel values of character drawn inside rectangle present on dialog which is created by following code in OnPaint() function CPaintDC dc(this); CPoint pt; //for showing image dc.BitBlt(offsetx,offsety,m_size.cx,m_size.cy, &m_dcMem, sourcex, sourcey,SRCCOPY); erase=false; //Code for showing rectangle dc.Rectangle(100,200,200,300); RectBackground.SetRect(100,200,200,300); CBrush brush; brush.CreateSolidBrush(RGB(255,255,255)); dc.FillRect(RectBackground,&brush); dc.DrawFocusRect(&RectBackground); anyone can tell me how i can get pixel values of character drawn inside rectangle so that i can recognise what is drwn inside rectangle on button click event.