设置GIF默认背景颜色为纯白透明背景

This commit is contained in:
ww-rm
2025-03-30 11:56:06 +08:00
parent 411cdbb00f
commit f9888b23dd

View File

@@ -15,6 +15,9 @@ namespace SpineViewer.Exporter.Implementations.ExportArgs
{
public GifExportArgs(Size resolution, SFML.Graphics.View view, bool renderSelectedOnly) : base(resolution, view, renderSelectedOnly)
{
// 给一个纯白的背景
BackgroundColor = new(255, 255, 255, 0);
// GIF 的帧率不能太高, 超过 50 帧反而会变慢
FPS = 12;
}