Blurred Delphi Form Icon in Windows 7 Taskbar

后端 未结 4 1596
渐次进展
渐次进展 2021-01-07 06:33

\"enterI have an application having 2 Forms, each Form and Application have individual Icon. O

4条回答
  •  心在旅途
    2021-01-07 06:59

    My best guess is that your form icon size is 16x16 and is being stretched from 16x16 to about 48x48, resulting in what you would call "a blurry appearance" but which is the standard Windows behaviour when the input (the icon on your form or application) is very low resolution.

    Icons can have multiple resolutions in the same .ico file. So please replace your current icon with one which has both 16x16, 32x32, and 48x48 sizes. THen windows will be able to show a proper full-resolution image. A modern icon for windows use could also include some larger Vista/Win7 icon sizes as high as 256x256. Update The OP reports the icon already has all the right sizes, and it does appear from the other answer here, that you are experiencing a problem with the VCL internal handling as David mentions in his answer.

    In short, windows does this because you gave it no way to avoid it. It is a choice of blurry, or pixelated. The "stretchdraw" code inside windows causes blurring, precisely to avoid the blocky look you would get when you don't blur it.

提交回复
热议问题