Bitmap to Texture

Probably this question was asked before.

But I have an issue with System.Drawing.Bitmap.

How can I use a bitmap that is not a file on a computer but a System.Drawing.Bitmap coming from video stream as rhino texture?

Hi!
Here Software security matters related to Grasshopper , in my last post, in the attached solution I made some code that output a colored mesh starting from a System.Drawing.Bitmap.
(Sizes of the mesh are 1 shorter of size in pixel, because colors are per-vertex instead of per-quadface)

Probably it’s a heavy and inefficient way to “apply a texture”… but maybe it helps.