1 2 3 4 5 6 7 8
|
operator HBITMAP()
{
HDC mdc = CreateCompatibleDC(NULL);
HBITMAP mbmp = CreateBitmap(imageweight,imageheight,1,32,NULL); // width, height, 1, bit_depth, NULL
HBITMAP moldbmp = (HBITMAP)SelectObject(mdc,mbmp);
BitBlt(mdc, 0, 0, imageweight, imageheight, hdcimage, 0, 0, SRCCOPY);
return mbmp;
}
|