Loading System.Drawing.Image from buffer
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
I have marshalled an imaging library and have recieved the pointer to the image buffer in an IntPtr object. How can I load that image in a System.Drawing.Image or Bitmap object. I would prefer not to use unsafe code unless deemed very necessary.
Perhaps the static method Bitmap.FromHBitmap(IntPtr ptr) will help you?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Who is Jewish, the Trivia Game! Judah Himango