- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Thread starter
- Moderator
- #71
I'd like to pick up a question related to accessing the backbuffer of the rendered scene: Due to changing the render device from DX9 to DX11, also the access have changed.
Before you could access:
With DX11+D2D the access is:
This bitmap can be used i.e. by a BitmapBrush to "paint" a resized version on a new bitmap.
Important: once the switch to DX11 is completed, we will probably remove the public access to the DX9 device, as it is only required for VideoPlayer interop.
Before you could access:
C#:
Surface backBuffer = SkinContext.Device.GetRenderTarget(0);
With DX11+D2D the access is:
C#:
Bitmap1 backBuffer = SkinContext.Device11.RenderTarget2D;
This bitmap can be used i.e. by a BitmapBrush to "paint" a resized version on a new bitmap.
Important: once the switch to DX11 is completed, we will probably remove the public access to the DX9 device, as it is only required for VideoPlayer interop.