If this is
System.Drawing.Bitmap
, use
GetHbitmap
.
Again, the question is: why? Chances are, what you want you can do using pure .NET libraries. Also, check up carefully if you really want to use
PictureBox
. If you want to manipulate image, or animate or do anything interactive,
PictureBox
will only eat up some extra resources but won't provide any help, will only add some hassles. I explained it, and also explained what to do instead, in my past solutions:
How to keep the image Drawn in PictureBox[
^],
Picture box lose drawing after reloading[
^],
How do I clear a panel from old drawing[
^].
—SA