From f42c3c7181c2b335200fc8cdbe2994653edb225c Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 15 Mar 2014 21:04:21 +0100 Subject: [PATCH] Export to image based format - changed default value for horizontal alignment to 'center' --- src/Forms/ExportPngXml.cs | 2 ++ src/Logic/Settings.cs | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Forms/ExportPngXml.cs b/src/Forms/ExportPngXml.cs index 78b888c76..f77fea6e6 100644 --- a/src/Forms/ExportPngXml.cs +++ b/src/Forms/ExportPngXml.cs @@ -2156,6 +2156,7 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine + i++; } checkBoxSimpleRender.Checked = Configuration.Settings.Tools.ExportVobSubSimpleRendering; + checkBoxTransAntiAliase.Checked = Configuration.Settings.Tools.ExportVobAntiAliasingWithTransparency; } else if (_exportType == "BLURAYSUP" || _exportType == "DOST" || _exportType == "FCP") { @@ -2651,6 +2652,7 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine + Configuration.Settings.Tools.ExportVobSubVideoResolution = res; Configuration.Settings.Tools.ExportVobSubLanguage = comboBoxLanguage.Text; Configuration.Settings.Tools.ExportVobSubSimpleRendering = checkBoxSimpleRender.Checked; + Configuration.Settings.Tools.ExportVobAntiAliasingWithTransparency = checkBoxTransAntiAliase.Checked; } else if (_exportType == "BLURAYSUP") { diff --git a/src/Logic/Settings.cs b/src/Logic/Settings.cs index d5d5ad402..56e444a3b 100644 --- a/src/Logic/Settings.cs +++ b/src/Logic/Settings.cs @@ -121,6 +121,7 @@ namespace Nikse.SubtitleEdit.Logic public string ExportVobSubVideoResolution { get; set; } public string ExportVobSubLanguage { get; set; } public bool ExportVobSubSimpleRendering { get; set; } + public bool ExportVobAntiAliasingWithTransparency { get; set; } public string ExportBluRayFontName { get; set; } public int ExportBluRayFontSize { get; set; } public string ExportFcpFontName { get; set; } @@ -187,8 +188,9 @@ namespace Nikse.SubtitleEdit.Logic ExportFontColor = Color.White; ExportBorderColor = Color.Black; ExportBottomMargin = 15; - ExportHorizontalAlignment = 0; + ExportHorizontalAlignment = 1; // 1=center (0=left, 2=right) ExportVobSubSimpleRendering = true; + ExportVobAntiAliasingWithTransparency = true; ExportBluRayBottomMargin = 20; ExportBluRayShadow = 1; Export3DType = 0; @@ -1561,6 +1563,9 @@ namespace Nikse.SubtitleEdit.Logic subNode = node.SelectSingleNode("ExportVobSubSimpleRendering"); if (subNode != null) settings.Tools.ExportVobSubSimpleRendering = Convert.ToBoolean(subNode.InnerText); + subNode = node.SelectSingleNode("ExportVobAntiAliasingWithTransparency"); + if (subNode != null) + settings.Tools.ExportVobAntiAliasingWithTransparency = Convert.ToBoolean(subNode.InnerText); subNode = node.SelectSingleNode("ExportVobSubLanguage"); if (subNode != null) settings.Tools.ExportVobSubLanguage = subNode.InnerText; @@ -2639,6 +2644,7 @@ namespace Nikse.SubtitleEdit.Logic textWriter.WriteElementString("ExportVobSubVideoResolution", settings.Tools.ExportVobSubVideoResolution); textWriter.WriteElementString("ExportVobSubLanguage", settings.Tools.ExportVobSubLanguage); textWriter.WriteElementString("ExportVobSubSimpleRendering", settings.Tools.ExportVobSubSimpleRendering.ToString()); + textWriter.WriteElementString("ExportVobAntiAliasingWithTransparency", settings.Tools.ExportVobAntiAliasingWithTransparency.ToString()); textWriter.WriteElementString("ExportBluRayFontName", settings.Tools.ExportBluRayFontName); textWriter.WriteElementString("ExportBluRayFontSize", settings.Tools.ExportBluRayFontSize.ToString()); textWriter.WriteElementString("ExportFcpFontName", settings.Tools.ExportFcpFontName);