示例#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);
 }
示例#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();
 }