Compare commits

..

6 Commits

Author SHA1 Message Date
ww-rm
497103bdb6 Merge pull request #69 from ww-rm/dev/wpf 2025-07-25 14:00:15 +08:00
ww-rm
04953d13b6 update readme 2025-07-25 13:59:37 +08:00
ww-rm
b272d9802e 更新至v0.15.6 2025-07-25 13:55:31 +08:00
ww-rm
bd5a537058 update changelog 2025-07-25 13:55:24 +08:00
ww-rm
64a3caf938 修改默认导出背景颜色为不透明黑色 2025-07-25 13:53:55 +08:00
ww-rm
ca34494483 修复导出单个模式的时长错误 2025-07-25 13:50:36 +08:00
9 changed files with 16 additions and 11 deletions

View File

@@ -1,5 +1,10 @@
# CHANGELOG
## v0.15.6
- 修复导出单个的时长错误
- 修改默认导出背景色为不透明黑色
## v0.15.5
- 修复自定义导出时的画面错误

View File

@@ -25,7 +25,7 @@
- 支持自动分辨率批量导出
- 支持 FFmpeg 自定义导出
- 支持程序参数保存
- ...
- ......
### Spine 版本支持

View File

@@ -82,12 +82,12 @@ namespace Spine.Exporters
_backgroundColorPma = bcPma;
}
}
protected Color _backgroundColor = Color.Transparent;
protected Color _backgroundColor = Color.Black;
/// <summary>
/// 预乘后的背景颜色
/// </summary>
protected Color _backgroundColorPma = Color.Transparent;
protected Color _backgroundColorPma = Color.Black;
/// <summary>
/// 画面分辨率

View File

@@ -7,7 +7,7 @@
<TargetFramework>net8.0-windows</TargetFramework>
<BaseOutputPath>$(SolutionDir)out</BaseOutputPath>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Version>0.15.5</Version>
<Version>0.15.6</Version>
</PropertyGroup>
<PropertyGroup>

View File

@@ -7,7 +7,7 @@
<TargetFramework>net8.0-windows</TargetFramework>
<BaseOutputPath>$(SolutionDir)out</BaseOutputPath>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Version>0.15.5</Version>
<Version>0.15.6</Version>
<OutputType>WinExe</OutputType>
<UseWPF>true</UseWPF>
</PropertyGroup>

View File

@@ -54,7 +54,7 @@ namespace SpineViewer.ViewModels.Exporters
/// 背景颜色
/// </summary>
public Color BackgroundColor { get => _backgroundColor; set => SetProperty(ref _backgroundColor, value); }
protected Color _backgroundColor = Color.FromArgb(0, 0, 0, 0);
protected Color _backgroundColor = Color.FromArgb(255, 0, 0, 0);
/// <summary>
/// 四周边缘距离

View File

@@ -92,7 +92,7 @@ namespace SpineViewer.ViewModels.Exporters
var output = Path.Combine(_outputDir!, filename);
if (_autoResolution) SetAutoResolutionAnimated(exporter, spines);
if (_duration < 0) exporter.Duration = spines.Select(sp => sp.GetAnimationMaxDuration()).DefaultIfEmpty(0).Max();
exporter.Duration = _duration >= 0 ? _duration : spines.Select(sp => sp.GetAnimationMaxDuration()).DefaultIfEmpty(0).Max();
exporter.ProgressReporter = (total, done, text) =>
{

View File

@@ -83,7 +83,7 @@ namespace SpineViewer.ViewModels.Exporters
var output = Path.Combine(_outputDir!, filename);
if (_autoResolution) SetAutoResolutionAnimated(exporter, spines);
if (_duration < 0) exporter.Duration = spines.Select(sp => sp.GetAnimationMaxDuration()).DefaultIfEmpty(0).Max();
exporter.Duration = _duration >= 0 ? _duration : spines.Select(sp => sp.GetAnimationMaxDuration()).DefaultIfEmpty(0).Max();
exporter.ProgressReporter = (total, done, text) =>
{

View File

@@ -56,12 +56,12 @@ namespace SpineViewer.ViewModels.Exporters
var output = Path.Combine(_outputDir!, folderName);
if (_autoResolution) SetAutoResolutionAnimated(exporter, spines);
if (_duration < 0) exporter.Duration = spines.Select(sp => sp.GetAnimationMaxDuration()).DefaultIfEmpty(0).Max();
exporter.Duration = _duration >= 0 ? _duration : spines.Select(sp => sp.GetAnimationMaxDuration()).DefaultIfEmpty(0).Max();
exporter.ProgressReporter = (total, done, text) =>
{
pr.Total = total;
pr.Done = done;
pr.Total = total;
pr.Done = done;
pr.ProgressText = text;
_vmMain.ProgressValue = pr.Done / pr.Total;
};