public override ITextStrategy Clone() { ExtrudeStrategy p = new ExtrudeStrategy(); if (m_bClrText) p.Init(m_clrText, m_clrOutline, m_nThickness, m_nOffsetX, m_nOffsetY); else p.Init(m_brushText, m_clrOutline, m_nThickness, m_nOffsetX, m_nOffsetY); return (ITextStrategy)(p); }
public override ITextStrategy Clone() { ExtrudeStrategy p = new ExtrudeStrategy(); if (m_bClrText) { p.Init(m_clrText, m_clrOutline, m_nThickness, m_nOffsetX, m_nOffsetY); } else { p.Init(m_brushText, m_clrOutline, m_nThickness, m_nOffsetX, m_nOffsetY); } return((ITextStrategy)(p)); }
public void Extrude( System.Drawing.Color color, int nThickness, System.Drawing.Point ptOffset) { ExtrudeStrategy pStrat = new ExtrudeStrategy(); pStrat.Init(System.Drawing.Color.FromArgb(0, 0, 0, 0), color, nThickness, ptOffset.X, ptOffset.Y); m_clrShadow = color; ExtrudeStrategy pFontBodyShadow = new ExtrudeStrategy(); pFontBodyShadow.Init(System.Drawing.Color.FromArgb(color.A, 255, 255), System.Drawing.Color.FromArgb(0, 0, 0, 0), 0, ptOffset.X, ptOffset.Y); m_pFontBodyShadow = pFontBodyShadow; m_ptShadowOffset = ptOffset; m_pShadowStrategy = pStrat; m_bExtrudeShadow = true; m_bDiffuseShadow = false; m_nShadowThickness = nThickness; }