Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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();
 }