Talking about "conversion" here is incorrect; and, more importantly, we don't know what is
pics
. Most likely, type casting to
IntPtr
would be impractical absurd; this type is used for passing pointers to unmanaged memory or object handles.
But in essence, I can imagine that you have some data structures describing the color (or color+alpha) for each pixel, and you need to put this data in a bitmap. Then the answer is pretty obvious:
https://msdn.microsoft.com/en-us/library/system.drawing.bitmap.lockbits%28v=vs.110%29.aspx[
^].
You will find a complete code sample on the MSDN help page on one of these similar methods.
—SA