Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm not sure this applies to your problem, but I'll post it here anyway since it might help someone:</p> <p>If not all of the images in the drawing group is going to be visible at the same time, you could set the <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.drawinggroup.clipgeometry.aspx" rel="nofollow noreferrer">ClipGeometry</a> property to whatever you want it to draw. This effectively tells WPF that the parts outside of the geometry is not needed and will be skipped during rendering.</p> <p>A few other things you could experiment with are:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/ms750509.aspx" rel="nofollow noreferrer">Freeze</a> the drawinggroup before applying it to your image source. At least it couldn't hurt (unless you really need to modify the instance, but remember you could always just create a new one instead of modifying the old)</li> <li>Try different ways to display your drawinggroup. For instance as a <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.drawingvisual.aspx" rel="nofollow noreferrer">DrawingVisual</a> (which is considered light weight) or as a <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.drawingbrush.aspx" rel="nofollow noreferrer">DrawingBrush</a> to paint e.g. a rectangle.</li> <li>Combine the small images into smaller groups which you then combine to your bigger group. No idea if this improves or hurts performance, but it could be worth trying.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload