• 2023-05-17c++ gdiplus实现屏幕截图
    #include<windows.h>#include<gdiplus.h>#include<iostream>#include<filesystem>#include<chrono>#include<iomanip>#include<sstream>#pragmacomment(lib,"Gdiplus.lib")usingnamespaceGdiplus;U
  • 2023-01-24个人写的双缓冲 CDC绘图函数
    voidCDRImageStatic::ShowImg(CDC*dc,CRectrect){CBitmapbmp;bmp.CreateCompatibleBitmap(dc,m_nWidth,m_nHeight);CBitmap*pOld=NULL;CDCmemDC;memDC.
  • 2022-12-23从位图数据取得位图句柄
    #include<windows.h>#include<fstream>usingnamespacestd;voidmain(){ifstreaminfile("bm.bmp",ios::in|ios::binary);BITMAPFILEHEADERbm
  • 2022-12-13VC,一条会被鼠标移动的直线
                                      对话框中的小红线可以被移动的一、类名是CBinarizationDlg二、