Loading

摘要: uchar *bits = nullptr; void initBuff(size_t size) { if (bits == nullptr) { bits = new uchar[size]; } } void releaseBuff() { if (bits != nullptr) { del 阅读全文
posted @ 2022-11-19 18:39 WindSnowLi 阅读(31) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_44575789/article/details/127935697像素处理太慢,这里换种方式 #pragma once #include <QDebug> #include <QImage> #include <QTimer> #include < 阅读全文
posted @ 2022-11-19 18:26 WindSnowLi 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 创建并获取窗口句柄 view->show(); view->createWinId(); auto wid = view->winId(); 获取图片 // 三秒钟之后 QTimer::singleShot(3000, [wid]() { auto&& image = GetGDIBitmap((H 阅读全文
posted @ 2022-11-19 13:19 WindSnowLi 阅读(233) 评论(0) 推荐(0) 编辑