Ejemplo n.º 1
0
        public override ITextStrategy Clone()
        {
            TextOutlineStrategy p = new TextOutlineStrategy();
            if (m_bClrText)
                p.Init(m_clrText, m_clrOutline, m_nThickness);
            else
                p.Init(m_brushText, m_clrOutline, m_nThickness);

            return (ITextStrategy)(p);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Generate Text Outline strategy
        /// </summary>
        /// <param name="brushText">is the brush of the text</param>
        /// <param name="clrOutline">is the color of the outline</param>
        /// <param name="nThickness">is the thickness of the outline in pixels</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextOutline(
            System.Drawing.Brush brushText,
            System.Drawing.Color clrOutline,
            int nThickness)
        {
            TextOutlineStrategy strat = new TextOutlineStrategy();

            strat.Init(brushText, clrOutline, nThickness);

            return(strat);
        }
Ejemplo n.º 3
0
        public override ITextStrategy Clone()
        {
            TextOutlineStrategy p = new TextOutlineStrategy();

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

            return((ITextStrategy)(p));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Generate Text Outline strategy
        /// </summary>
        /// <param name="brushText">is the brush of the text</param>
        /// <param name="clrOutline">is the color of the outline</param>
        /// <param name="nThickness">is the thickness of the outline in pixels</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextOutline(
            System.Drawing.Brush brushText,
            System.Drawing.Color clrOutline,
            int nThickness)
        {
            TextOutlineStrategy strat = new TextOutlineStrategy();
            strat.Init(brushText, clrOutline, nThickness);

            return strat;
        }
Ejemplo n.º 5
0
        public void Shadow(
            System.Drawing.Color color,
            int nThickness,
            System.Drawing.Point ptOffset)
        {
            TextOutlineStrategy pStrat = new TextOutlineStrategy();
            pStrat.Init(System.Drawing.Color.FromArgb(0,0,0,0),color,nThickness);

            m_clrShadow = color;

            TextOutlineStrategy pFontBodyShadow = new TextOutlineStrategy();
            pFontBodyShadow.Init(System.Drawing.Color.FromArgb(255, 255, 255), System.Drawing.Color.FromArgb(0, 0, 0, 0), 0);
            m_pFontBodyShadow = pFontBodyShadow;

            m_ptShadowOffset = ptOffset;
            m_pShadowStrategy = pStrat;
            m_bDiffuseShadow = false;
        }
Ejemplo n.º 6
0
        public void TextOutline(
            System.Drawing.Brush brushText,
            System.Drawing.Color clrOutline,
            int nThickness)
        {
            TextOutlineStrategy pStrat = new TextOutlineStrategy();
            pStrat.Init(brushText, clrOutline, nThickness);

            m_pTextStrategy = pStrat;
        }