|
|
说明: 创建以后的DC 必须能执行透明边缘裁减函数的操作 .
方法一:
Dim hScreenDC As Long,Dim tBitmap as Bitmap
' Get the handle to the current display screen's DC
hScreenDC = GetDC(GetDesktopWindow)
' Create a compatible DC
If hScreenDC <> 0 Then MemoryDC_Create = CreateCompatibleDC(hScreenDC)
' Release the handle to the display screen
ReleaseDC GetDesktopWindow, hScreenDC
'新建位图
tBitmap = CreateCompatibleBitmap(hScreenDc, 长, 宽)
'把新建位图选入DC
SelectObject m_MemDc, tBitmap
本来大功即将告成.
无奈.在对DC进行边框裁减时出了问题. 请熟悉GDI和FX的朋友帮忙解答. |
|