如何创建看起来像标准图标的.NET 6 WinForms工具栏图标

huangapple go评论70阅读模式
英文:

How to create .NET 6 WinForms Toolbar Icons that look like standard ones

问题

我正在为.NET 6(WinForms)应用程序开发一个工具栏。Visual Studio图像库提供了一些很棒的图标。然而,这些PNG图标只有16x16像素。由于某种原因,我的工具栏默认高度为31像素,工具栏按钮的图标会被拉伸并变得模糊。这是不可接受的。(请注意,工具栏上还有一个组合框。)

我希望能够将Visual Studio图像库中的SVG图标转换为其他尺寸,但是除了16x16像素之外,它们也会变得模糊。

有没有什么推荐的方法和分辨率可以创建与从“插入标准项目”工具获取的标准图标外观相匹配的清晰的工具栏按钮图标?

英文:

I'm working on a toolbar for .NET 6 (WinForms) application. The Visual Studio Image library provides some great icons. However, the PNGs are only 16x16. For some reason my toolstrip defaults to a height of 31pix and the toolstripbutton icons become stretched and blurry. This is not acceptable. (Note there is one combobox on the toolstrip.)

I'd love to be able to convert the SVGs in the Visual Studio Image Library, but they also come out blurry when changed to anything other than 16x16.

What is a recommended approach and resolution for creating sharp toolbar button icons that fit the look of the standard icons obtained from the "Insert Standard Items" tool?

答案1

得分: 1

我认为你应该选择另一个转换器,我尝试使用GIMP将一些SVG转换为31像素的PNG,它们看起来很好。

英文:

> but they also come out blurry when changed to anything other than 16x16.

I think you should choose another converter, I tried to use GIMP to convert some SVGs to 31px PNGs, they look good.

如何创建看起来像标准图标的.NET 6 WinForms工具栏图标 如何创建看起来像标准图标的.NET 6 WinForms工具栏图标 如何创建看起来像标准图标的.NET 6 WinForms工具栏图标

huangapple
  • 本文由 发表于 2023年8月8日 22:15:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76860431.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定