Added to zoom-levels to VideoAspect. Toogle on ScreenSing with 'V', saved to song-text if saving is enabled in config.xml.

This commit is contained in:
Florian Küpper committed 2014-09-19 16:15:53 +02:00
1 parent 6ea49eeab0
commit e915e72ce6
4 files changed
+45 -1

No files matched your search

+24
View File
@@ -152,6 +152,30 @@ namespace VocaluxeLib
scaledWidth = boundsH * rectAspect;
}
break;
case EAspect.Zoom1:
if (boundsAspect >= rectAspect)
{
scaledWidth = boundsW * 1.33f;
scaledHeight = boundsW * 1.33f / rectAspect;
}
else
{
scaledHeight = boundsH / 1.33f;
scaledWidth = boundsH / 1.33f * rectAspect;
}
break;
case EAspect.Zoom2:
if (boundsAspect >= rectAspect)
{
scaledWidth = boundsW * 1.17f;
scaledHeight = boundsW * 1.17f / rectAspect;
}
else
{
scaledHeight = boundsH / 1.17f;
scaledWidth = boundsH / 1.17f * rectAspect;
}
break;
case EAspect.LetterBox:
if (boundsAspect <= rectAspect)
{
+3 -1
View File
@@ -43,7 +43,9 @@ namespace VocaluxeLib
{
Crop,
LetterBox,
Stretch
Stretch,
Zoom1,
Zoom2
}
public enum EAlignment
+5
View File
@@ -287,6 +287,11 @@ namespace VocaluxeLib.Songs
return loader.ReadNotes();
}
public bool Save()
{
return Save(Path.Combine(Folder, FileName));
}
public bool Save(string filePath)
{
var writer = new CSongWriter(this);