How do draw a line for the data?
Posted: Wed Jul 22, 2015 1:20 pm
i painted the line using a and b by mfc.
for example,
As I tried to draw the data in the wxWidgets.
While reading the Reference, one by one, is not easy to learn.
please teach me about draw data(line) by wxwidgets.
for example,
Code: Select all
CStatic* stc = (CStatic *)GetDlgItem(IDC_STATIC_ENERGY); // i want to draw in ID_PANEL1, instead of IDC_STATIC_ENERGY
CRect rect;
CClientDC dc(stc);
stc->GetClientRect(&rect);
CBrush brush;
brush.CreateSolidBrush(RGB(255, 255, 255));
FillRect(dc, &rect, brush);
dc.MoveTo(0, rect.bottom/2);
for (int n=0; n<frameN; n++)
{
//dc.LineTo(n/amp_scale2,2*feature2d[n][0]);
dc.LineTo(n,2*feature2d[n][0]);
}
brush.DeleteObject();
While reading the Reference, one by one, is not easy to learn.
please teach me about draw data(line) by wxwidgets.