各位大佬vb.net中出现graphics.fromhdc(hdc)hdc的值为空,怎么解决?

vb.net中 Dim G1 As Graphics = Graphics.FromHdc(hdc)调试时出现hdc值为空的现象

Private Shared Function CreateDC(ByVal lpszDriver As String, ByVal lpszDevice As String, ByVal lpszOutput As String, ByVal lpInitData As IntPtr) As IntPtr
End Function
    Dim capture1 As IntPtr = CreateDC("DISPLAY", Nothing, Nothing, Nothing)
    Dim get1 As Graphics = Graphics.FromHdc(capture1)

向各位大佬请教

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐