public static Texture2D Retrieve() { FreeDraw.GraphicsDevice.SetRenderTarget(null); Color[] col = new Color[Screen.Width * Screen.Height - 1]; Screen.GetData(col); PermGfx = new Texture2D(Universal.Graphics.GraphicsDevice, Screen.Width, Screen.Height); PermGfx.SetData(col); Screen.Dispose(); LiveDraw.Dispose(); return(PermGfx); }
public static void Modify(Texture2D tex, Rectangle Drawto, Rectangle Drawfrom, Color col) { LiveDraw.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, RasterizerState.CullNone); LiveDraw.Draw(tex, Drawto, Drawfrom, col); LiveDraw.End(); }