Example #1
0
        public void TextDblOutline(
            System.Drawing.Brush brushText,
            System.Drawing.Color clrOutline1,
            System.Drawing.Color clrOutline2,
            int nThickness1,
            int nThickness2)
        {
            TextDblOutlineStrategy pStrat = new TextDblOutlineStrategy();

            pStrat.Init(brushText, clrOutline1, clrOutline2, nThickness1, nThickness2);

            m_pTextStrategy = pStrat;
        }
Example #2
0
        public void TextDblOutline(
            System.Drawing.Brush brushText,
            System.Drawing.Color clrOutline1,
            System.Drawing.Color clrOutline2,
            int nThickness1,
            int nThickness2)
        {
            TextDblOutlineStrategy pStrat = new TextDblOutlineStrategy();

            pStrat.Init(brushText, clrOutline1, clrOutline2, nThickness1, nThickness2);

            m_pTextStrategy = pStrat;

            TextDblOutlineStrategy pStrat2 = new TextDblOutlineStrategy();

            pStrat2.Init(
                System.Drawing.Color.FromArgb(255, 255, 255, 255),
                System.Drawing.Color.FromArgb(clrOutline1.A, 255, 255, 255),
                System.Drawing.Color.FromArgb(clrOutline2.A, 255, 255, 255),
                nThickness1,
                nThickness2);

            m_pTextStrategyMask = pStrat2;
        }