Пример #1
0
        public ITextStrategy Clone()
        {
            TextGlowStrategy p = new TextGlowStrategy();
            if (m_bClrText)
                p.Init(m_clrText, m_clrOutline, m_nThickness);
            else
                p.Init(m_brushText, m_clrOutline, m_nThickness);

            return (ITextStrategy)(p);
        }
Пример #2
0
        /// <summary>
        /// Generate Text Glow strategy
        /// </summary>
        /// <param name="brushText">is the brush of the text</param>
        /// <param name="clrOutline">is the color of the glow outline</param>
        /// <param name="nThickness">is the thickness of the outline in pixels</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextGlow(
            System.Windows.Media.Brush brushText,
            System.Windows.Media.Color clrOutline,
            int nThickness)
        {
            TextGlowStrategy strat = new TextGlowStrategy();

            strat.Init(brushText, clrOutline, nThickness);

            return(strat);
        }
Пример #3
0
        public ITextStrategy Clone()
        {
            TextGlowStrategy p = new TextGlowStrategy();

            if (m_bClrText)
            {
                p.Init(m_clrText, m_clrOutline, m_nThickness);
            }
            else
            {
                p.Init(m_brushText, m_clrOutline, m_nThickness);
            }

            return((ITextStrategy)(p));
        }
Пример #4
0
        /// <summary>
        /// Generate Text Glow strategy
        /// </summary>
        /// <param name="brushText">is the brush of the text</param>
        /// <param name="clrOutline">is the color of the glow outline</param>
        /// <param name="nThickness">is the thickness of the outline in pixels</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextGlow(
            System.Windows.Media.Brush brushText,
            System.Windows.Media.Color clrOutline,
            int nThickness)
        {
            TextGlowStrategy strat = new TextGlowStrategy();
            strat.Init(brushText, clrOutline, nThickness);

            return strat;
        }