Reply to thread

I havent got a compiler here, but this should work.



[code=vb]

            Dim gs As GraphicsStream

            gs = SurfaceLoader.SaveToStream(ImageFileFormat.Bmp, dxDevice.GetBackBuffer(0, 0, BackBufferType.Mono))

            Dim bmp As New Bitmap(gs)

            Dim tx As New Texture(dxDevice, bmp, Usage.AutoGenerateMipMap, Pool.SystemMemory)

[/code]


Back
Top