This commit is contained in:
2010-07-22 14:22:53 +00:00
parent 458b3b4d63
commit 843677822d
5 changed files with 53 additions and 282 deletions

View File

@@ -59,22 +59,22 @@ namespace Volian.Print.Library
}
else
{
float lineThickness = 0;
switch (MyBox.BoxStyle)
{
case BoxThin:
cb.SetLineWidth(.6F);
cb.Rectangle(left, bottom, right - left, Height * MyPageHelper.YMultiplier);
lineThickness = .6F;
break;
case BoxThick:
float lineThickness = 6;
cb.SetLineWidth(lineThickness);
cb.Rectangle(left+6, bottom + (lineThickness / 2), right - left - 6, (Height - lineThickness) * MyPageHelper.YMultiplier);
lineThickness = 6;
break;
default:
// For other than OHLP/HLP. For those not matching the HLP Boxes
throw new Exception("Missing vlnBox handler");
break;
}
const float llxOffset = 3;
cb.SetLineWidth(lineThickness);
cb.Rectangle(left + llxOffset, bottom + (lineThickness / 2), right - left - llxOffset, (Height - lineThickness) * MyPageHelper.YMultiplier);
}
cb.Stroke();
if (textLayer != null) cb.EndLayer();