   rendering to a transparent surface
  This subject has been brought up a lot, I know, but after reading through a lot of threads I still wasn't able to fix my problem.I want to render to a different rendertarget in order to generate screenshots, as opposed to the usual target which seems to be reflections. When the screenshot is taken, I need it to have a transparent background, and this is the part I cannot get to work.Here's what I try in a TakeSnapShot-method:Surface surface = device.CreateRenderTarget(width, height, Format.A8R8G8B8, MultiSampleType.FourSamples, 0, false);Surface oldRenderTarget = device.GetRenderTarget(0);device.SetRenderTarget(0, surface);// this is my render method. It is passed the backgroundcolor, with which the background is clearedRender(Color.FromArgb(0,0,0,0));device.SetRenderTarget(0, oldRenderTarget);GraphicsStream stream = SurfaceLoader.SaveToStream(ImageFileFormat.Png, surface);System.Drawing.Bitmap bmp = (System.Drawing.Bitmap)System.Drawing.Bitmap.FromStream(stream);Weird thing I found here is that the surface has the A8R8G8B8 format, but the bitmap at the end has 24bppRGB as format.. Additional information:The actual render method is very straightforward:(..)device.Clear(ClearFlags.Target, backgroundColor, 0.0f, 0);device.BeginScene();SetupMatrices();(..)device.EndScene();I should probably add my render state initialization:  device.RenderState.SourceBlend = Blend.SourceAlpha;  device.RenderState.DestinationBlend = Blend.InvSourceAlpha;  device.RenderState.MultiSampleAntiAlias = true;  device.RenderState.AlphaBlendEnable = true;  device.RenderState.Ambient = Color.White;[Edited by - garma83 on May 25, 2009 4:08:09 AM]