Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Changing the Icon of exe?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 ParticleGames   Members   -  Reputation: 112

Like
0Likes
Like

Posted 17 January 2013 - 07:16 PM

I've been messing around creating programs lately and I decided to change the icon of my program. I'm using a framework called OpenFrameworks, and it uses GLUT/OpenGL for graphics. I managed to change it by adding a rc script to my Visual Studio project that contains:

 

GLUT_ICON ICON src/glut.ico

 

This will change the icon. However, the same icon file will be used universally, so the icon image on the window of my application is shrunk down which causes extreme distortion, and the icon image on my task bar is stretched out. Is there a way to optimize these icons for the different locations they appear? Whether it's via rc scripting or any other route.


Edited by ParticleGames, 20 January 2013 - 02:30 PM.


Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9630

Like
3Likes
Like

Posted 17 January 2013 - 08:58 PM

A single .ico file can contain multiple images for different resolutions. You just need to find an icon editor that supports this functionality and make the required images for the various necessary resolutions.

#3 ParticleGames   Members   -  Reputation: 112

Like
0Likes
Like

Posted 18 January 2013 - 05:18 AM

Ah such a simple answer I was over thinking, thank you! :)

#4 Bacterius   Crossbones+   -  Reputation: 9098

Like
0Likes
Like

Posted 18 January 2013 - 06:49 AM

Pixelformer is a pretty damn good bare-bones icon editor, and supports multiple-resolution icons. YMMV, of course.


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis


#5 shuma-gorath   Members   -  Reputation: 887

Like
0Likes
Like

Posted 18 January 2013 - 06:38 PM

Versions of IcoFX before version 2.0 were freeware. You should still be able to find version 1.6.4 online somewhere. It, too, is a lightweight icon editor that supports "packing."

Edited by shuma-gorath, 18 January 2013 - 06:40 PM.


#6 ParticleGames   Members   -  Reputation: 112

Like
0Likes
Like

Posted 19 January 2013 - 09:56 PM

So I've come to a half-solution, but I've become stumped again. I used Greenfish Icon Editor to create an icon with the sizes 16x16, 24x24, 32x32, 64x64, and 256x256. The icon almost works. I attached a picture because it's hard to verbally explain the error. It chooses the right icon for the text console, and the quick bar looks fine, but it looks like the GLUT window is trying to use the same one as the quick bar and it looks bad. My resource script is still the same. Here's what it looks like: 

qovpcw.jpg


Edited by ParticleGames, 19 January 2013 - 09:56 PM.


#7 Khatharr   Crossbones+   -  Reputation: 3031

Like
0Likes
Like

Posted 20 January 2013 - 08:01 AM

You can set the small and large icons explicitly in the WNDCLASSEX struct when creating your window class.


Edited by Khatharr, 20 January 2013 - 08:04 AM.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS