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(); }
internal void FillRectangle(Color brush, RectangleFx rectangle) { DrawingContext.DrawFilledRectangle(rectangle.ToRectangle(), brush); }