DUCE.ResourceHandle handle = DUCE.OpenResource(); DUCE.SendCommand(handle, new DUCE.RenderVisualCommand(visual)); DUCE.CloseResource(handle);
DUCE.ResourceHandle handle = DUCE.OpenResource(); DUCE.SendCommand(handle, new DUCE.DrawGeometryCommand(pen, brush, geometry)); DUCE.CloseResource(handle);Both of these examples utilize the DUCE interface to combine multiple graphics operations into a single operation for improved performance. The package library for these examples is System.Windows.Media.Composition.