How to draw bitmap directly or from byte [] to Direct2DSurface

Jan 30, 2013 at 7:14 AM

 HI 

Currently I am loading image to D2DSurface using this.direct2DSurface1.ImagePath(string path).

I am trying to pass byte array, memory stream or atleast system.drawing.bitmap to direct2DSurface. So i can avoid overhead of reading image from file.

If any one has done this before. plz guide me

 

thanks