public override ITextStrategy Clone()
        {
            DiffusedShadowStrategy p = new DiffusedShadowStrategy();
            if (m_bClrText)
                p.Init(m_clrText, m_clrOutline, m_nThickness, m_bOutlinetext);
            else
                p.Init(m_brushText, m_clrOutline, m_nThickness, m_bOutlinetext);

            return (ITextStrategy)(p);
        }
Пример #2
0
        public override ITextStrategy Clone()
        {
            DiffusedShadowStrategy p = new DiffusedShadowStrategy();

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

            return((ITextStrategy)(p));
        }
Пример #3
0
        public void DiffusedShadow(
            System.Drawing.Color color,
            int nThickness,
            System.Drawing.Point ptOffset)
        {
            DiffusedShadowStrategy pStrat = new DiffusedShadowStrategy();
            pStrat.Init(System.Drawing.Color.FromArgb(0,0,0,0),color,nThickness,true);

            m_clrShadow = color;

            DiffusedShadowStrategy pFontBodyShadow = new DiffusedShadowStrategy();
            pFontBodyShadow.Init(System.Drawing.Color.FromArgb(color.A, 255, 255), System.Drawing.Color.FromArgb(0, 0, 0, 0), 0, true);
            m_pFontBodyShadow = pFontBodyShadow;

            m_ptShadowOffset = ptOffset;
            m_pShadowStrategy = pStrat;
            m_bDiffuseShadow = true;
            m_bExtrudeShadow = false;
            m_nShadowThickness = nThickness;
        }