2012年12月22日

Image 到 DIB HBITMAP

摘要: HBITMAP ImageToBitmap( Gdiplus::Image* image ){ HDC MemoryDC = ::CreateCompatibleDC(::GetDC(NULL)); UINT height = image->GetHeight(); UINT width = image->GetWidth(); if (height <= 0 || width <= 0) { return NULL; } BITMAPINFO bmpInfo; bmpInfo.bmiHeader.biHeight = -(LON... 阅读全文

posted @ 2012-12-22 01:26 快乐的大猪 阅读(484) 评论(0) 推荐(0) 编辑

导航