예제 #1
0
 public void RenderLayer(ILayer layer, bool fast)
 {
     if (layer.Visible)
     {
         using (DrawingContext.PushedState state = m_Context.PushOpacity(layer.Opacity))
         {
             layer.Render(this, fast);
         }
     }
 }
예제 #2
0
 public void RenderGroup(IGroup group, bool fast)
 {
     if (group.Visible)
     {
         using (DrawingContext.PushedState state = m_Context.PushOpacity(group.Opacity))
         {
             foreach (IGroupNode childNode in group.ChildNodes)
             {
                 if (childNode is ILayer layer)
                 {
                     RenderLayer(layer, fast);
                 }
                 else if (childNode is IGroup g)
                 {
                     RenderGroup(g, fast);
                 }
             }
         }
     }
 }