Recent

Author Topic: icon within executable is blurry  (Read 1256 times)

stormfinger

  • New member
  • *
  • Posts: 7
icon within executable is blurry
« on: April 30, 2020, 02:37:02 pm »
hi
i tried to set up an icon for my litle project ...so i selected some picture and created png ..whatever the size ..the picture becames blury on task bar when program is started ..but if i take that same picture and put it in *.desktop file the picture is sharp. i have come upon this issue on elementary os hera. with lazarus 2.0.8 made 14-4-2020

 regards

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: icon within executable is blurry
« Reply #1 on: April 30, 2020, 02:45:55 pm »
You might get better results if you convert the png to on icon file.

if you google png to ico converter you should find a lot of online converters,

you might also have better result if you have multiple resolutions of the ico files, these can be assembled into icns files, again if you google there are various online sites that will convert a single png into various resolutions for icns files, if deploying for Mac this is really a must.

hope that helps.
« Last Edit: April 30, 2020, 02:47:56 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

stormfinger

  • New member
  • *
  • Posts: 7
Re: icon within executable is blurry
« Reply #2 on: May 05, 2020, 09:39:01 pm »
hi

thank you for your reply. yes i also tried with ico file same result icon in task bar is blurry if icon is loaded in executable. tried several dimensions.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: icon within executable is blurry
« Reply #3 on: May 07, 2020, 11:03:36 am »
I happens because the icon should be scaled.  To prevent that, your ICO file should include several sizes (from 32x32 up to 512x512).  See the default icon provided by Lazarus itself.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018