Now actually use export vobsub option "aa with transparency" when writing the .sub file... (was only used in the UI) - thx moob :)

This commit is contained in:
niksedk 2014-03-13 21:58:44 +01:00
parent 5c4f37e8fb
commit 821fcba3f0

View File

@ -341,7 +341,7 @@ namespace Nikse.SubtitleEdit.Logic.VobSub
_idx.AppendLine(string.Format("timestamp: {0:00}:{1:00}:{2:00}:{3:000}, filepos: {4}", p.StartTime.Hours, p.StartTime.Minutes, p.StartTime.Seconds, p.StartTime.Milliseconds, _subFile.Position.ToString("X").PadLeft(9, '0').ToLower()));
var nbmp = new NikseBitmap(bmp);
_emphasis2 = nbmp.ConverToFourColors(_background, _pattern, _emphasis1, true);
_emphasis2 = nbmp.ConverToFourColors(_background, _pattern, _emphasis1, _useInnerAA);
var twoPartBuffer = nbmp.RunLengthEncodeForDvd(_background, _pattern, _emphasis1, _emphasis2);
var imageBuffer = GetSubImageBuffer(twoPartBuffer, nbmp, p, alignment);