Exemplo n.º 1
0
        public static ITextStrategy TextGradOutline(
            ICanvasBrush brushText,
            Color clrOutline1,
            Color clrOutline2,
            int nThickness,
            GradientType gradType)
        {
            TextGradOutlineStrategy strat = new TextGradOutlineStrategy();

            strat.Init(brushText, clrOutline1, clrOutline2, nThickness, gradType);

            return(strat);
        }
        public ITextStrategy Clone()
        {
            TextGradOutlineStrategy p = new TextGradOutlineStrategy();

            if (m_bClrText)
            {
                p.Init(m_clrText, m_clrOutline1, m_clrOutline2, m_nThickness, m_GradientType);
            }
            else
            {
                p.Init(m_brushText, m_clrOutline1, m_clrOutline2, m_nThickness, m_GradientType);
            }

            return(p);
        }