VC++ 内存绘制图像并保存
VC++通过内存绘制图像并保存图像 if(nIDEvent == 1) { const int num = 150; static int a[num] = {0}; for(int i = 0; i<num-1 ;i++) { a[i] = a[i+1]; } a[num-1] = (rand() % 100) - 50; const int mult = 3; int n[mult] = {num/mult,num/mult,num/mult}; COLORREF color[mult] = {RGB(255,0,0),RGB(0,255,0),RGB(0,0,255)}; MyDraw dd; dd.DrawLine(num,a,RGB(0,200,200),GetDlgItem(IDC_PIC1)); dd.DrawWave(num,a,RGB(200,200,0),GetDlgItem(IDC_PIC2)); dd.DrawMultiLine (mult,n,a