Exemple #1
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_ptShadowOffset  = ptOffset;
            m_pShadowStrategy = pStrat;

            TextOutlineStrategy pStrat2 = new TextOutlineStrategy();

            pStrat2.Init(
                System.Drawing.Color.FromArgb(0, 0, 0, 0),
                System.Drawing.Color.FromArgb(color.A, 255, 255, 255),
                nThickness);

            m_pShadowStrategyMask = pStrat2;

            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;

            TextOutlineStrategy pFontBodyShadowMask = new TextOutlineStrategy();

            pFontBodyShadowMask.Init(System.Drawing.Color.FromArgb(color.A, 255, 255, 255), System.Drawing.Color.FromArgb(0, 0, 0, 0), 0);
            m_pFontBodyShadowMask = pFontBodyShadowMask;
            m_bDiffuseShadow      = false;
        }
Exemple #2
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;
        }
Exemple #3
0
        public void TextOutline(
            System.Drawing.Color clrText,
            System.Drawing.Color clrOutline,
            int nThickness)
        {
            TextOutlineStrategy pStrat = new TextOutlineStrategy();

            pStrat.Init(clrText, clrOutline, nThickness);

            m_pTextStrategy = pStrat;

            TextOutlineStrategy pStrat2 = new TextOutlineStrategy();

            pStrat2.Init(
                System.Drawing.Color.FromArgb(clrText.A, 255, 255, 255),
                System.Drawing.Color.FromArgb(clrOutline.A, 255, 255, 255),
                nThickness);

            m_pTextStrategyMask = pStrat2;
        }