I am currently using System.Windows.Media.DrawingGroup to store some tiled images (ImageDrawing) in the Children-DrawingCollection property. The problem is that now this method becomes very slow if you display the entire DrawingGroup in the Image control, because my DrawingGroup can contain hundreds or even thousands of small images, which can really ruin the performance.
So, my first thought was to somehow display one image from all the small ones inside the DrawingGroup, and then only display that image, which would be much faster. But, as you could understand, I did not find any solution, so just combine multiple images with WPF Imaging.
It would be great if someone could help with this problem or tell me how I can improve performance using DrawingGroup or even use a different approach.
Last, I am currently using RenderTargetBitmap to create one BitmapSource from a DrawingGroup, this approach is not very fast, but it makes scrolling and working with the image control at least a little smoother.
source
share