修改预览图背景颜色为透明
This commit is contained in:
@@ -163,6 +163,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
Size = new(bounds.Width, -bounds.Height),
|
Size = new(bounds.Width, -bounds.Height),
|
||||||
Format = SkiaSharp.SKEncodedImageFormat.Webp,
|
Format = SkiaSharp.SKEncodedImageFormat.Webp,
|
||||||
Quality = PreviewQuality,
|
Quality = PreviewQuality,
|
||||||
|
BackgroundColor = SFML.Graphics.Color.Transparent,
|
||||||
};
|
};
|
||||||
exporter.Export(m.PreviewFilePath, sp);
|
exporter.Export(m.PreviewFilePath, sp);
|
||||||
}
|
}
|
||||||
@@ -199,6 +200,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
{
|
{
|
||||||
Format = SkiaSharp.SKEncodedImageFormat.Webp,
|
Format = SkiaSharp.SKEncodedImageFormat.Webp,
|
||||||
Quality = PreviewQuality,
|
Quality = PreviewQuality,
|
||||||
|
BackgroundColor = SFML.Graphics.Color.Transparent,
|
||||||
};
|
};
|
||||||
for (int i = 0; i < totalCount; i++)
|
for (int i = 0; i < totalCount; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user