Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42506

GCHandle to Convert Bitmap to IntPtr

$
0
0
I need help doing this. I have some source code to do so but I'm lost on 1 part of it. Look below..."Whatever" would be the bitmap but I'm lost on the "Some API Call" part. What API call would I need there?

Code:

Dim gch As GCHandle
Try gch = GCHandle.Alloc(whatever, GCHandleType.Pinned)
SomeAPICall(gch.AddressOfPinnedObject())
Finally
If GCHandle.IsAllocated()
Then GCH.Free()
End Try


Viewing all articles
Browse latest Browse all 42506

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>