Resize and controls
This commit is contained in:
parent
f175eb390e
commit
02d6cb5d12
6 changed files with 33 additions and 15 deletions
|
|
@ -24,7 +24,10 @@ namespace CatalogLib
|
|||
public void Start(FileInfo workFile)
|
||||
{
|
||||
_currentFile = workFile;
|
||||
using (Image image = new Image(workFile.FullName))
|
||||
|
||||
|
||||
|
||||
using (Image image = Image.Load(workFile.FullName)/* new Image(workFile.FullName)*/)
|
||||
{
|
||||
if (PicSettings.Instance.UsaRotazioneAutomatica)
|
||||
{
|
||||
|
|
@ -79,7 +82,10 @@ namespace CatalogLib
|
|||
|
||||
}
|
||||
|
||||
SetExtraText(image);
|
||||
if (PicSettings.Instance.EnableText)
|
||||
{
|
||||
SetExtraText(image);
|
||||
}
|
||||
|
||||
//JpegDecoder j = new JpegDecoder();
|
||||
var va = Vector.IsHardwareAccelerated;
|
||||
|
|
@ -105,10 +111,12 @@ namespace CatalogLib
|
|||
var fff = FontCollection.SystemFonts.Find(PicSettings.Instance.NomeFont);
|
||||
//var fff = FontCollection.SystemFonts.Find("Segoe Print");
|
||||
|
||||
var font = new Font(fff, (float) PicSettings.Instance.DimensioneFont, FontStyle.Regular);
|
||||
var font = new Font(fff, (float)PicSettings.Instance.DimensioneFont, FontStyle.Regular);
|
||||
//var font = new Font(fff, 8f, FontStyle.Regular);
|
||||
|
||||
|
||||
Color c = Color.FromHex(PicSettings.Instance.ColoreTestoRGB);
|
||||
//image.DrawText(PicSettings.Instance.TestoApplicareOrizzontale, font, Color.Black, )
|
||||
image.DrawText(PicSettings.Instance.TestoApplicareOrizzontale, font, Color.Black, new Vector2(200, 200));
|
||||
//image.DrawText("sssssssssssssssssssssssssssssssssssssssssssssss", font, Color.Black, new Vector2(200, 200));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue