System.Drawing.Image Convert to Moge.Image problem

andyhebear1

07-11-2009 10:00:06

As the Title !
why I cann't convert a system.drawing.image to a mogre.image!
help! thanks!

andyhebear1

07-11-2009 10:07:08

because the system.drawing.image coming from the memory ,

smiley80

07-11-2009 10:33:11

http://www.ogre3d.org/wiki/index.php/Co ... ogre.Image

andyhebear1

07-11-2009 10:39:09

thanks !MemoryDataStream oMemoryStream = new MemoryDataStream(pUnsafeBuffer, (uint)pBuffer.Length);
DataStreamPtr oPtrDataStream = new DataStreamPtr(oMemoryStream);
oMogreImage = oMogreImage.Load(oPtrDataStream, "png");