Windows "User Account Control" Prompt Icon Size - windows

The Windows "User Account Control" dialog displays an icon for the application it is asking about. The icon in the window is 40x40. My executable includes an ICO file with 32x32 and 40x40 icons. Windows uses the 32x32 image and scales it up to 40x40. I am using Inno Setup to create my installer. Is it possible to get Windows to use the 40x40 image instead?
]
The setup icon is defined in the ISS file using
SetupIconFile=MyProgSetup.ico
(I tried deleting the 32x32 image and leaving just the 40x40 image. Windows uses the 40x40 image but still distorts the image. It looks like it scales it down to 32x32 then back up to 40x40.)

Related

Why does macOS Finder draw areas of my app icon where alpha != 1 in black?

When I select my app in Finder using the columns display, the app icon displayed in the rightmost pane has all areas where alpha != 1 rendered in black.
Screenshot showing alpha!=1 areas in black
However you can see the the icon in the middle pane is rendered correctly. Also if I view the app's .icns file in Finder it is rendered correctly:
screen shot of app's .icns file
The icon is also rendered correctly in the Dock and in Launchpad.
Why does Finder render black in this one case?
macOS Sierra 10.12.5 but I doubt the issue is specific to this version.
I have spent almost a day hunting for solutions on the net but have not found anything even remotely close to this problem. No other app exhibits this issue. I have also tried to find an application that will let me view the details of each image of a working application's .icns file. Again without success.
Make a new .icns file using Image2Icon instead of Axialis IconWorkshop.
Following I'L'I's suggestion I examined the icon file with Preview. Preview shows that the 512x512 & 72x72 sizes do not have an alpha channel and have a black background where alpha != 1 in the 1024x1024 and other images that do have alpha. There are other strange images, including gray scale.
The .icns file was created for me by the icon designer using Axialis IconWorkshop. I do not have this software so do not know if the strangeness is cockpit error or application bugs.
I made a new .icns file from the same input PNG file using Image2Icon. In this file, all sizes have alpha and there are no strange images. Using this file, the display in Finder is correct.

exe icon is not full size (windows 10)

I want to set an icon for my program (exe file and desktop shortcut). I am using Qt 5.7 on Windows.
I followed the instructions from: http://doc.qt.io/qt-5/appicon.html, that is in the pro file I put "RC_ICONS = logo7.ico".
When I install the program on my computer (Win8), it works well. The desktop shortcut's icon shows my logo perfectly and full size. However, when I install the program on another computer (Win10), the desktop shortcut's icon is not full size. Even if I CTRL-scroll on the desktop to change the icon size, this icon remains the same size.
Here is an example of two desktop icons (one full and the other one that does not scale).
image here
Is there something special I should do with my icon (I tried icon sizes of 128x128 to 512x512) so that its full screen ?
Or is it something to do in Qt ?
Thank you so much !
Alex
Most windows 10 .ico icons are multi layer files instead of them being truly scalable. Akin to animated gifs but no animation, just layers. Open a .ico file in Gimp Image editor, you'll see the different sizes in layers. Here is a quick link to the Windows Media center icon hosted on icon archive: http://www.iconarchive.com/show/mega-pack-2-icons-by-ncrow/Windows-Media-Center-icon.html
attached is a screen shot of what I am talking about:
screen shot of windows media player icon
you could use it as a template and replace their pic with yours

How many pixels in the Windows Taskbar Icons?

I'm making a program that will show you when caps lock is turned on. I want it to display a little icon on the Windows Taskbar by the icons such as the battery, volume and internet connection. I was just wondering what the dimensions of the image could/should be.
Googling on this...
windows tray icons resolution
... the first few hits are quite helpful; What is the size of the icons in the system tray? says that
It's 16x16. If you create a .ico file that supports 16, 32, 48 and 256 sizes, you're covered.
And it points here, where Microsoft recommends:
Notification area icons should be high-DPI aware. An application should provide both a 16x16 pixel icon and a 32x32 icon in its resource file, and then use LoadIconMetric to ensure that the correct icon is loaded and scaled appropriately.

Having problems adding icon in Xcode

How do I add an app icon on xcode? I tried using an image from google saved it onto my desktop and carry dropped it on the app icon, however this didn't work.
The icon is obviously used for the home screen, and the launch image is displayed when the app loads. Because you need to provide support for both Retina Display (4 and higher) and standard (3GS and lower), the files should be according the following specifications:
Standard icon 57 × 57, named Icon.png
Retina Display icon 114 × 114, named Icon#2x.png
Standard launch image 320 × 480, named Default.png
Retina Display launch image 640 × 960, named Default#2x.png
After you have these created according these standard size and naming conventions, replace the canned files that PhoneGap already added by overwriting them in your project folder.
Images.xcassets/AppIcon.appiconset
Add the .png file to your Images.xcassets/AppIcon.appiconset
You need to observe the file format, jpg's are mostly used.
Also you need to observe the correct dimensions of the image, if you hover over the icon's placeholder, you see for e.g. iPhone/iPod non-retina 57x57 pixels. In a graphic editor you can change the canvas size.
Try the asset catalog, this will help organize all your images and icons.

Get Icon info from the executable file?

I'm trying to get the icon from the .exe file using the following APIs:
SHGetFileInfoW() SHGetImageList() and from the ImageList thus obtained I read the icon by calling GetIcon().
When the color depth of the machine is set to 32bit I get the 32bit color icon. The issue is when I change the machine's color depth to 24 or 16 bit then I get a 16bit color icon and this image seems to be corrupted.
I also checked for the list of available icons in some of the common windows applications (notepad, paint etc) and some of the office applications, none of had 16bit or 24 bit color icons.
What would be the best way to get the proper icons from the executable file ?
Thanks !
You can load exe's using LoadLibraryEx, and then extract the icons using LoadImage - or - if you want direct access to the icons data: FindResource, LoadResource, LockResource will give you a pointer to the icon's resources bits.

Resources