rendertarget

Changing RenderTarget Results in Purple Screen?

I'm attempting to change RenderTargets at runtime, so I can draw some elements at runtime, manipulate them and then finally draw the texture to the screen. Problem is, the screen turns purple if I change the RenderTarget at runtime. Here's the code I've got in Draw: RenderTarget2D tempTarget = new RenderTarget2D(GraphicsDevice, ...

Resizing SlimDX WindowRenderTarget properly

I am using SlimDX's Direct2D API to render a waveform in a Panel control. Unfortunately, resizing the control causes the RenderTarget to not resize itself properly. It resizes in "jumps", meaning that it only resizes after dragging the resize grip on the form a few pixels away. This results in behavior like this: The panel backcolor i...