Bitmap cache on DrawingVisual has blurry parts
问题 Recently I switched to DrawingVisuals to increase the performance of our trending graphs (especially zooming and panning). Here's the code I have: blocksToBeRendered = (baseItem as AvgCurve).GetStreamGeometryBlocks(ActualWidth, ActualHeight, _minPoint.X, _maxPoint.X, FixTimeStep ? _timeStep : 0, IsMainChart); Pen stroke = new Pen((baseItem as AvgCurve).LineBrush, 1); foreach (GeometryGroup group in blocksToBeRendered) { if (group.Children.Count != 0) { if (!cachedBlocks[baseItem].Any(x => x