icons

converting .PNG to .ICO in C/C#

◇◆丶佛笑我妖孽 提交于 2020-01-10 11:34:13
问题 I want to convert .PNG files to .ICO files. I want to do it locally with out any internet dependency (so I can't use online tools like converttoico.com etc). I found a wonderful tool called png2ico, but it has a restriction that it can only convert images of size 1X1 to 256X256. Although for now, I am modifying the PNG resolution (in C#) and compressing it to 256X256, and then using this tool to convert it to icon, but the image quality is not good at all. Does any one know of any native

converting .PNG to .ICO in C/C#

孤街浪徒 提交于 2020-01-10 11:32:16
问题 I want to convert .PNG files to .ICO files. I want to do it locally with out any internet dependency (so I can't use online tools like converttoico.com etc). I found a wonderful tool called png2ico, but it has a restriction that it can only convert images of size 1X1 to 256X256. Although for now, I am modifying the PNG resolution (in C#) and compressing it to 256X256, and then using this tool to convert it to icon, but the image quality is not good at all. Does any one know of any native

Wrong desktop shortcut icon on Windows 7 (Inno Setup)

孤人 提交于 2020-01-09 12:55:42
问题 I have created an installer with Inno Setup. The icon used for the desktop shortcut and start menu is embeded in the application executable. When the installer was initially created, I didn't have the final product icon from the design team. I used a temporary icon instead as I completed the installer. Everything worked as it should until I changed the icon for the final one. Now the desktop shortcut and start menu icons always display the old icon even though everywhere else the icon is

Wrong desktop shortcut icon on Windows 7 (Inno Setup)

混江龙づ霸主 提交于 2020-01-09 12:54:52
问题 I have created an installer with Inno Setup. The icon used for the desktop shortcut and start menu is embeded in the application executable. When the installer was initially created, I didn't have the final product icon from the design team. I used a temporary icon instead as I completed the installer. Everything worked as it should until I changed the icon for the final one. Now the desktop shortcut and start menu icons always display the old icon even though everywhere else the icon is

How to get the icon associated with a specific folder?

北慕城南 提交于 2020-01-09 11:57:45
问题 I was required in one of my projects to get the icon for specific folders from their paths. For example: If I use C:\Users\Username\Desktop I want to get the icon associated with the Desktop folder If I use the path of a folder that has a custom icon, I want to get that icon AND NO, I DO NOT WANT THE GENERAL DEFAULT FOLDER ICON I've been searching for nearly 3 days with no luck. Any help is appreciated. 回答1: You could use the native SHGetFileInfo function. You can import it using the .net

ActionBarSherlock leads to icons get stretched

ε祈祈猫儿з 提交于 2020-01-07 06:07:14
问题 We have started integrating ActionBarSherlock into our app. Everything looks great, it's a really great lib, that gets in easily. But, there's one issue we don't know how to solve: Some of the icons on some pages for larger screens get stretched . Has anybody had such problem? Upd. 1.: Device that has icons stretched is running on Android 4.2.2 (it's Nexus 7 actually). All ok on a smaller screen like HTC Desire (2.3.3). Upd. 2.: As the example of what is happening: there's an icon of a size

ActionBarSherlock leads to icons get stretched

我们两清 提交于 2020-01-07 06:06:09
问题 We have started integrating ActionBarSherlock into our app. Everything looks great, it's a really great lib, that gets in easily. But, there's one issue we don't know how to solve: Some of the icons on some pages for larger screens get stretched . Has anybody had such problem? Upd. 1.: Device that has icons stretched is running on Android 4.2.2 (it's Nexus 7 actually). All ok on a smaller screen like HTC Desire (2.3.3). Upd. 2.: As the example of what is happening: there's an icon of a size

How to assign icons to `gnotebook()` tabs?

余生颓废 提交于 2020-01-07 05:27:12
问题 I am using gWidgets2 to create a tabbed GUI, and I would like each tab to have an associated icon (image). Consider: require(gWidgets2) w <- gwindow("notebook example", visible=T) nb <- gnotebook(container=w) gbutton("Refresh", label="Refresh", container=nb) ## note label argument gbutton("Info", label="Info", container=nb) How can I assign the refresh icon next to the label of the 1st tab? And the info icon to the 2nd tab? 回答1: Something like this can be modified to suit your needs: function

How can I add multiple icons to the Spark TabBar control?

旧巷老猫 提交于 2020-01-07 04:09:12
问题 In the MX TabBar component, the iconField property allowed us to display different icons in each tab. In Spark, there does not seem to be an inherent way to add icons to the TabBar. Does anyone have an example of implementing icon support for Spark's TabBar? Is there a way to do this without extending the component? Many thanks! 回答1: Hey after spending a week trying to follow multiple ways, (yours being top of the list) i found out a simpler and effective way to add icons to my tab bar, or

icon bar customisation in html and css

对着背影说爱祢 提交于 2020-01-06 08:56:20
问题 I am trying to customise the following icon bar (as shown in w3schools) - code pasted below along with link, to display like the image shown. The icons need to have text right underneath them (labels). This is NOT trivial as you'll see if you continue to read the description of the problem. Furthermore, I'd like to add hover-over text to these icons, as shown. Any solutions/suggestions appreciated. https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_icon_bar_h <!DOCTYPE html> <html>