Made a random icon, it looks like this (Screenshot from the desktop):

Made icon

After that I added it to the project, through the Project> Properties> Resources> Icon and the manifest tied to the project, the output is an exe with this icon:

Output icon

Visual comparison (on the left the assembled project, on the right the original):

Comparison

Why is this happening and how to fix it?

  • What is the original icon resolution and color depth? - Andrew NOP
  • the flat view is the result of the smoothing operation, in fact, your icon is just that jagged ; it is unlikely that you can turn it on separately for the icon, only for the entire form SnapsToDevicePixels = false; UseLayoutRounding = true; SnapsToDevicePixels = false; UseLayoutRounding = true; like. - Alias
  • @ AndreiNOP 128x128, 32 - color depth - SKProCH
  • Most likely the icon has been resized, because 128 is not supported. Look at this post: stackoverflow.com/a/3244679/6766879 - Andrew NOP
  • @AndreyNOP changed the resolution to 256x256. Anyway, the original is more smooth. - SKProCH

1 answer 1

So, I understood what caused it. It seems that neither PhotoShop with the defective plugin "ICOFormat.8bi", nor Gimp saved the files normally.

Using Axialis IconWorkshop, I was able to properly convert the file to ico and then paste it into the program. Here is the result:

enter image description here

The first is the original one, the second is the IconWorkshop converted using Axialis, the third is already an exe file.