Menu testo e fix float margine

This commit is contained in:
Maddo 2017-09-28 14:50:24 +02:00
commit a81451bd6b
6 changed files with 42 additions and 41 deletions

View file

@ -313,12 +313,12 @@ namespace CatalogLib
font = new Font(fo, dimensioneStandard, FontStyle.Regular);
}
image.Mutate(x => x.DrawText(text, font, gBack, new PointF(xCenterofImg + 1 , yPosFromBottom + 1), new TextGraphicsOptions()
image.Mutate(x => x.DrawText(text, font, gBack, new PointF((float)Math.Round(xCenterofImg + 1) , (float)Math.Round(yPosFromBottom + 1)), new TextGraphicsOptions()
{
HorizontalAlignment = HorizontalAlignment.Center
}));
image.Mutate(x => x.DrawText(text, font, g, new PointF(xCenterofImg, yPosFromBottom), new TextGraphicsOptions()
image.Mutate(x => x.DrawText(text, font, g, new PointF((float)Math.Round(xCenterofImg), (float)Math.Round(yPosFromBottom)), new TextGraphicsOptions()
{
HorizontalAlignment = HorizontalAlignment.Center
}));

View file

@ -313,8 +313,8 @@ namespace CatalogLib
set { SetString("DirDestinazione", value); }
}
public float Margine { get => GetFloat("Margin", 1);
set => SetFloat("Margin", value);
public int Margine { get => GetInt("Margin", 1);
set => SetInt("Margin", value);
}
public float MargVert { get; set; }
public string Allineamento { get; set; }