Exemplo n.º 1
0
        internal override void CopyPropertiesFrom(LW_Element element)
        {
            LW_Stroke stroke = element as LW_Stroke;

            if (stroke != null)
            {
                m_GlobalWidth = stroke.m_GlobalWidth;
                if (stroke.m_VariableWidths != null)
                {
                    m_VariableWidths = new List <LW_WidthStop>(stroke.m_VariableWidths);
                }
                else
                {
                    m_VariableWidths = null;
                }
                m_SpaceWidthsEvenly = stroke.m_SpaceWidthsEvenly;
                m_SpaceColorsEvenly = stroke.m_SpaceColorsEvenly;
                m_ScreenSpace       = stroke.m_ScreenSpace;
                m_Linecap           = stroke.m_Linecap;
                m_Linejoin          = stroke.m_Linejoin;
                m_MiterLimit        = stroke.m_MiterLimit;
                m_Justification     = stroke.m_Justification;
                m_Angle             = stroke.m_Angle;
            }
            base.CopyPropertiesFrom(element);
        }
Exemplo n.º 2
0
 internal override void Reset()
 {
     base.Reset();
     m_GlobalWidth    = 1;
     m_VariableWidths = new List <LW_WidthStop>()
     {
         new LW_WidthStop(1f, 0f)
     };
     m_SpaceWidthsEvenly = false;
     m_SpaceColorsEvenly = false;
     m_ScreenSpace       = false;
     m_Linecap           = Linecap.Butt;
     m_Linejoin          = Linejoin.Miter;
     m_MiterLimit        = 4f;
     m_Justification     = Justification.center;
     m_Angle             = 0f;
 }