var rt = Rhino.Render.RenderTexture.NewBitmapTexture(src_bitmap, Rhino.RhinoDoc.ActiveDoc);
To process bitmap as DocObjects.Texure
var rt = Rhino.Render.RenderTexture.NewBitmapTexture(src_bitmap, Rhino.RhinoDoc.ActiveDoc);
var t = rt.SimulatedTexture(RenderTexture.TextureGeneration.Allow).Texture();
You should refrain from using the old-style Texture and Material in new code though. When writing code please use the RenderEnvironment, RenderMaterial and RenderTexture classes from the Rhino.Render namespace.