예제 #1
0
 internal void DrawRectangle(Color brush, RectangleFx rectangle)
 {
     DrawingContext.Begin(
         SpriteSortMode.Deferred,
         BlendState.AlphaBlend,
         SamplerState.LinearClamp, DepthStencilState.None,
         RasterizerState.CullNone,
         null,
         Transform);
     //DrawingContext.Begin();
     DrawingContext.DrawRectangle(rectangle.ToRectangle(), brush);
     DrawingContext.End();
 }
예제 #2
0
 internal void FillRectangle(Color brush, RectangleFx rectangle)
 {
     DrawingContext.DrawFilledRectangle(rectangle.ToRectangle(), brush);
 }