![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
window编程
zkpls574
这个作者很懒,什么都没留下…
展开
-
如何根据内存数据生成位图
HBITMAP hCustomBmp = CreateCompatibleBitmap(window.hDC, WIDTH, HEIGHT); //创建一副与当前DC兼容的位图BITMAPINFO bmpInfo;bmpInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);bmpInfo.bmiHeader.biWidth = WIDTH;原创 2015-12-24 14:57:27 · 1041 阅读 · 0 评论 -
Opengl如何从磁盘中加载图片生成纹理对象
IplImage* imgBGR = cvLoadImage(szPathName);IplImage* imgRGB = cvCreateImage(cvGetSize(imgBGR), 8, 3);cvCvtColor(imgBGR,imgRGB,CV_BGR2RGB); //Opencv默认是BGRint width = imgRGB->width; int height原创 2015-12-24 15:12:14 · 662 阅读 · 0 评论 -
加锁类
class CriticalSectLock{public:CriticalSectLock(CRITICAL_SECTION* cs){m_cs = cs;if (cs)EnterCriticalSection(cs);}~CriticalSectLock(){if (m_cs)LeaveCriticalSection(m_cs);}pri原创 2016-01-27 16:50:36 · 298 阅读 · 0 评论 -
自动加锁
class AutoLock {public:AutoLock(void){InitializeCriticalSection(&m_section);}~AutoLock(void){DeleteCriticalSection(&m_section);}void Lock() {EnterCriticalSection(&m_section);原创 2016-03-02 16:11:00 · 340 阅读 · 0 评论