changes to support approval process

This commit is contained in:
Rich 2012-01-23 13:59:12 +00:00
parent e9a77c98bf
commit c5e95ca801

View File

@ -982,10 +982,16 @@ namespace Volian.Svg.Library
ZoomOMatic(cb, 36);
cb.RestoreState();
}
private bool _AllowAllWatermarks = false;
public bool AllowAllWatermarks
{
get { return _AllowAllWatermarks; }
set { _AllowAllWatermarks = value; }
}
private void DrawWatermark(PdfContentByte cb)
{
if (Watermark.ToLower().Contains("none") || Watermark == "") return;
if (!AllowedWatermarks.Contains(Watermark)) return;
if (Watermark == null || Watermark.ToLower().Contains("none") || Watermark == "") return;
if (!AllowAllWatermarks && !AllowedWatermarks.Contains(Watermark)) return;
cb.SaveState();
if (_WatermarkLayer != null) cb.BeginLayer(_WatermarkLayer);
SvgWatermark myWatermark = new SvgWatermark(cb, Watermark, System.Drawing.Color.Blue, .15F);