Command Line setting to create a inch-based vertical ruler rather than a line-based vertical ruler.
This commit is contained in:
parent
ad300e777a
commit
ea42dd8795
@ -483,8 +483,16 @@ namespace Volian.Print.Library
|
||||
for (float y = yTop; y >= yBottom; y -= 12)
|
||||
{
|
||||
float w = 10;
|
||||
if (Volian.Base.Library.VlnSettings.GetCommandFlag("InchRuler"))
|
||||
{
|
||||
if (i % 6 == 0) w = 30;
|
||||
else if (i % 3 == 0) w = 20;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (i % 10 == 0) w = 30;
|
||||
else if (i % 5 == 0) w = 20;
|
||||
}
|
||||
cb.SetLineWidth(w / 30);
|
||||
i++;
|
||||
cb.MoveTo(x - w, y);
|
||||
@ -495,8 +503,16 @@ namespace Volian.Print.Library
|
||||
for (float y = yTop; y >= yBottom; y -= 10.1F)
|
||||
{
|
||||
float w = 10;
|
||||
if (Volian.Base.Library.VlnSettings.GetCommandFlag("InchRuler"))
|
||||
{
|
||||
if (i % 7 == 0) w = 30;
|
||||
//else if (i % 5 == 0) w = 20;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (i % 10 == 0) w = 30;
|
||||
else if (i % 5 == 0) w = 20;
|
||||
}
|
||||
cb.SetLineWidth(w / 30);
|
||||
i++;
|
||||
cb.MoveTo(x + w, y-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user