摘要: 使用CreateDIBSection 可以创建一个设备无关位图 #include <windows.h> using namespace std; int main() { HDC hdc = GetDC(HWND_DESKTOP); HDC MemDC = CreateCompatibleDC(h 阅读全文
posted @ 2020-06-03 15:46 strive-sun 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 使用StretchDIBits将位图数据传输到printer的dc中 #include <Windows.h> #include <algorithm> int main() { int nWidth = 16, nHeight = 16; BYTE byteBitmap[768]; std::fi 阅读全文
posted @ 2020-06-03 14:52 strive-sun 阅读(430) 评论(0) 推荐(0) 编辑