windows - UWP package.appmanifest Assets 生成器扩展了我的图像

标签 windows uwp

我正在尝试为 UWP Windows 10 应用创建视觉 Assets 。使用 VS 2017(15.2、26430.6)和 package.appmanifest。当我将 400x400 .png 图像放入 Assets 生成器时,它会自动将其缩放到 533x533,这会导致失真和伪影。该提示不支持 SVG(尽管它支持其他矢量图形格式,即 .pdf 和 .ai)。

以防万一,我最初放置了一个 327x327(我认为这可能是缩放的来源)。但后来我关闭了我的解决方案并重新打开,缩放仍然存在。

编辑:创建空白的新应用程序。在 Asset Generator 中放置相同的 400x400 图像,它仍然缩放到 533x533

最佳答案

我已经根据您的描述测试了 Asset Generator。但我无法重现你的问题。您用来创建视觉 Assets 的 Assets 生成器似乎存在一些问题。

When I place a 400x400 .png image into the asset generator, the size it recommends, it is scaling it up to 533x533 automatically, which is causing distortion and artifacts. The prompt does not support SVG (though it does support other vector graphic formats, namely .pdf and .ai).

如果您想使用 svg 文件来避免缩放问题。你可以使用 The UWP Visual Assets Generator tool Visual Studio 。它可以创建 UWP 应用程序所需的所有视觉 Assets 。您还可以在资源中选择图标的宽度。

enter image description here

更多详情请引用UWP Visual Assets Generator .

关于windows - UWP package.appmanifest Assets 生成器扩展了我的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44072710/

相关文章:

windows - 无法在 vb6 ide windows 7 32 位中使用/加载 mscomct2.ocx 控件

c# - UWP 中缺少 LineSegment.IsStroked

java - 在 java 中添加对 windows 任务栏的贡献 - 类似于笔记本电脑电池小部件

java - 如何使用 Java 凭据连接到网络驱动器?

windows - 转换后的 UWP 应用程序无法在 Xbox One 上运行

c# - 更改 WebView UWP 中的默认用户代理

xaml - 为什么在设置 ComboBox.SelectedIndex 时出现异常?

c# - 如何在 UWP 等 WPF 应用程序中使用连接动画

c++ - 如何处理 ATLMFC 包含文件中的指针截断?

c - 静默安装 winpcap