ok... This isn't working, and I dont know why, when I pass the resulting surface to StretchRectangle I get the awsome "error in application" haha... anyway. Is this not the right way (using .Net 3.5 runtime and the latest DirectX Dev Kit form March) to turn a bitmap into a surface? Public Function img2surface(ByVal img As Bitmap) As Direct3D.Surface Dim image As Direct3D.Surface image = New Direct3D.Surface(device, img, Direct3D.Pool.Default) Return image End Function
Hi Jameson, this newsgroup is really infrequently used and you will get (if any!) mostly very lately an answer. I recommend you to ask this question either here: http://www.devmaster.net/engines/ or here: Have a look at the bottom links on this articles: http://en.wikipedia.org/wiki/DirectX http://en.wikipedia.org/wiki/Microsoft_XNA Hope this helps,... Regards Kerem -- ----------------------- Beste Grüsse / Best regards / Votre bien devoue Kerem Gümrükcü Microsoft Live Space: http://kerem-g.spaces.live.com/ Latest Open-Source Projects: http://entwicklung.junetz.de ----------------------- "This reply is provided as is, without warranty express or implied." "Jameson" schrieb im Newsbeitrag news:9A755EF9-6675-45A1-963F-7DBB347F9AAE@microsoft.com... > ok... > > This isn't working, and I dont know why, when I pass the resulting > surface to StretchRectangle I get the awsome "error in application" > haha... anyway. Is this not the right way (using .Net 3.5 runtime and > the latest DirectX Dev Kit form March) to turn a bitmap into a > surface? > > Public Function img2surface(ByVal img As Bitmap) As Direct3D.Surface > Dim image As Direct3D.Surface > image = New Direct3D.Surface(device, img, > Direct3D.Pool.Default) > Return image > End Function >