Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC
Hi,
 
Instead of 16x16 icon I want to use 32x32 or even more, how to do that??
A simple window created by me is currently using icon 16x16 and I want to change it.
 
Actually I am have one application which is using 32x32 icon and if I try to use the same then my window does not show that 32x32 icon. If I paste it on 16x16 then some part of the icon is cut. How does the application I have can use 32x32 icon but not my window ? what are the settings for that ?? that is what I want to know.
 
Thanks in advance,
Prasad.
Posted 3-Oct-12 7:35am
Edited 3-Oct-12 21:01pm
v2
Comments
Sergey Alexandrovich Kryukov at 3-Oct-12 13:58pm
   
What causes you creation of 16x16? One approach is making a really big (1M pixel and better) one and scale down, but even then the result can be not perfect; it depends on the content.
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This "change" is called "re-sampling". This is pixel graphics, not vector; in particular, it means if you automatically re-sample 16x16 to any bigger size, the result will be prohibitively ugly in most of cases, almost always. Scaling down is more successful, but in such small sizes still questionable, usually needs manual re-touch. To me, all iconic images need qualification of a good artist and designer, and, for such small sizes, even all re-samplings. If some ugliness is your choice, you can do it in any graphics editor, but consider I warned you.
 
[EDIT: in response to follow-up question]
 
There are many products, free or open-source, to do that properly. For icons, I recommend IcoFx:
http://en.wikipedia.org/wiki/IcoFX[^],
http://icofx.ro/[^].
 
I tell you, the IcoFx quality is better then is simple approach, but manual re-touch is typically needed for really good quality.
 
—SA
  Permalink  
v2
Comments
prasad@codeproj at 4-Oct-12 3:00am
   
Thanks. But actually I have one application which is using 32x32 icon and if I try to use the same then my window does not show that 32x32 icon. If I paste it on 16x16 then some part of the icon is cut. How does the application I have can use 32x32 icon but not my window ? what are the settings for that ?? that was my question actually.
Sergey Alexandrovich Kryukov at 4-Oct-12 3:12am
   
Well, this problem is easy. Please see my updated answer, after [EDIT]. IcoFx will scale, not crop. Try to see if you like it.
 
And please consider accepting this answer formally (green button).
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,631
1 Sergey Alexandrovich Kryukov 6,345
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100