F2022-012: Barakah – for warning, move top lines of box down so don’t overlap underline of INIT
This commit is contained in:
parent
385b977d3a
commit
8fcdc3bde3
@ -289,29 +289,30 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
// F2021-026: Barakah single column thick double box around Warnings
|
// F2021-026: Barakah single column thick double box around Warnings
|
||||||
// F2021-081: Barakah thick double box, adjust to add more space between boxes
|
// F2021-081: Barakah thick double box, adjust to add more space between boxes
|
||||||
|
// F2022-012: Barakah move the top 2 lines down slightly so they don't overlap INIT underline if at top of page.
|
||||||
private static void DrawDoubleHlsBoxThick(PdfContentByte cb, float top, float bottom, float left, float right)
|
private static void DrawDoubleHlsBoxThick(PdfContentByte cb, float top, float bottom, float left, float right)
|
||||||
{
|
{
|
||||||
float lineThickness = 3;
|
float lineThickness = 3;
|
||||||
float lnOff = 1f * vlnPrintObject.SixLinesPerInch;
|
float lnOff = 1f * vlnPrintObject.SixLinesPerInch;
|
||||||
cb.SetLineWidth(lineThickness);
|
cb.SetLineWidth(lineThickness);
|
||||||
// top (double line)
|
// top (double line)
|
||||||
cb.MoveTo(left-2.5f, top + lnOff-1); // outer (lower y moves up page)
|
cb.MoveTo(left-2.5f, top + lnOff-4); // outer (lower y moves up page)
|
||||||
cb.LineTo(right+2.5f, top + lnOff-1);
|
cb.LineTo(right+2.5f, top + lnOff-4);
|
||||||
cb.MoveTo(left + 4.5f, top + lnOff - 8); // inner
|
cb.MoveTo(left + 4.5f, top + lnOff - 11); // inner
|
||||||
cb.LineTo(right - 4.5f, top + lnOff - 8);
|
cb.LineTo(right - 4.5f, top + lnOff - 11);
|
||||||
// bottom (double line)
|
// bottom (double line)
|
||||||
cb.MoveTo(left-2.5f, bottom - 6);
|
cb.MoveTo(left-2.5f, bottom - 6);
|
||||||
cb.LineTo(right+2.5f, bottom - 6);
|
cb.LineTo(right+2.5f, bottom - 6);
|
||||||
cb.MoveTo(left + 4.5f, bottom+ 1);
|
cb.MoveTo(left + 4.5f, bottom+ 1);
|
||||||
cb.LineTo(right - 4.5f, bottom+ 1);
|
cb.LineTo(right - 4.5f, bottom+ 1);
|
||||||
// sides
|
// sides
|
||||||
cb.MoveTo(left + 4.5f, top + lnOff - 6.5f); // inner box
|
cb.MoveTo(left + 4.5f, top + lnOff - 9.5f); // inner box
|
||||||
cb.LineTo(left + 4.5f, bottom - 0.5f);
|
cb.LineTo(left + 4.5f, bottom - 0.5f);
|
||||||
cb.MoveTo(right - 4.5f, top + lnOff - 6.5f);
|
cb.MoveTo(right - 4.5f, top + lnOff - 9.5f);
|
||||||
cb.LineTo(right - 4.5f, bottom - 0.5f);
|
cb.LineTo(right - 4.5f, bottom - 0.5f);
|
||||||
cb.MoveTo(left - 2.5f, top + lnOff+0.5f); // outer box
|
cb.MoveTo(left - 2.5f, top + lnOff-2.5f); // outer box
|
||||||
cb.LineTo(left-2.5f, bottom - 7.5f);
|
cb.LineTo(left-2.5f, bottom - 7.5f);
|
||||||
cb.MoveTo(right + 2.5f, top + lnOff + 0.5f);
|
cb.MoveTo(right + 2.5f, top + lnOff -2.5f);
|
||||||
cb.LineTo(right+2.5f, bottom - 7.5f);
|
cb.LineTo(right+2.5f, bottom - 7.5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user