Transparent icons not used when available
Started by Sam Hasler


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


12 posts in this topic
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
02-10-2005, 06:14 AM -
#1
I have an icon containing several images as follows:
16 x 16, 16 colors
16 x 16, 256 colors
16 x 16, true color (32-bit)
32 x 32, 16 colors
32 x 32, 256 colors
32 x 32, true color (32-bit)
48 x 48, 16 colors
48 x 48, 256 colors
48 x 48, true color (32-bit)

When I set it as the icon for a menu button TLB appears to be using the 32 x 32, 256 colors representation and not the 32 x 32, true color (32-bit) image.
Yuri Kobets
Posting Freak
*****


10
6,208 posts 429 threads Joined: Jan 2002
02-10-2005, 11:04 AM -
#2
Please try the TLB version 3.2.2 This version have some changes to enhance loading icons. If this v3.2.2 have same problems please can you send me this icon and tell about your windows version.
The TORDEX Team
http://www.tordex.com
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
02-12-2005, 09:58 AM -
#3
Sorry, it turned out to be a problem with the icon. :oops:
(I must remember in future not to submit bug reports at a quarter past one in the morning Smile)
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
02-12-2005, 10:12 AM -
#4
After a bit more playing about I think I know how I got confused.

I renamed an icon file and replaced it with one that was slightly different. TLB doesn't appear to reload the icon when I hit refresh, so I was still seeing the old icon.

(Background: I wanted the same icon for a folder when in explorer that I use for the shortcut to it in TLB but because it had alpha trasparency, and I'm on win98, I was fixing the mask of the icon I use in desktop.ini so it looks correct in explorer.)
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
03-31-2005, 04:16 AM -
#5
And after some more investigation I'm now sure I was right the first time.

If there is a 256 color and a true color (32-bit) image for the icon it will use 256 color image in the Select Icon dialog and when it is used.
Yuri Kobets
Posting Freak
*****


10
6,208 posts 429 threads Joined: Jan 2002
03-31-2005, 10:58 AM -
#6
You are using Windows 98? What is the format of the icon file? On Windows 98 you can use only .ico to show icon in 32bit colors.
The TORDEX Team
http://www.tordex.com
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
04-01-2005, 02:27 PM -
#7
This happens with an ico file, and yes I'm on Windows 98.

It's 32bit transparent icons that I'm having trouble with. I've changed the title of my original post to reflect that.

I've attached a zipped icon that I see this problem with.


Attached Files
.zip   Windows XP Icon 9.zip (Size: 9.73 KB / Downloads: 506)
Yuri Kobets
Posting Freak
*****


10
6,208 posts 429 threads Joined: Jan 2002
04-01-2005, 02:51 PM -
#8
At first look TLB do not show this icon correctly on WinXP too. Even explorer of XP don't show it correctly. I guess this icon have incorrect format. I'll continue investigation of this problem.

I've attached the updated icon. Please test it.


Attached Files
.zip   Windows XP Icon 9-updated.zip (Size: 8.6 KB / Downloads: 495)
The TORDEX Team
http://www.tordex.com
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
04-01-2005, 03:55 PM -
#9
Sorry, that doesn't appear correctly either. I'm still seeing the 256 colour image.

All you appear to have done is remove the 16bit images from it.
Looking at a binary diff the 16bit images were at the start of the file, but something was also removed in the middle of the file, but it doesn't appear to have had any visual affect.
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
04-04-2005, 01:34 PM -
#10
It appears that if there's a 8bit image before a 32bit image it will use the 8bit one.

I tried reordering the images using @icon sushi and it then picked up the 32bit image. Although that order doesn't work for win98 explorer as it expects the lowest depth for a size to be first, so it shows the 32bit image using the 1bit transparency mask (as opposed to the 8bit alpha channel) which for most of the icons I have wouldn't look good.

I think what I may do is go through my icon collection using @icon sushi or IconShop and extract all the 32bit icons for use with TLB.

Aside: those are the best two freeware icon applications for spliting and combining _multiple sized_ icons and ICL's I've found. Both can save icl libraries and .ico files with multiple sizes/depths in a single icon, and support 32bit icons up to 128x128 (possibly beyond I don't think I have any icons bigger than that).

IconShop is very good for browsing files (icons/cursors/BMP/GIF/TIFF/XPM/resources/exe/libraries) for icons, particularly because it shows, at once, every image for each size and colour depth an icon has. It's not as easy to create and save ICL's as it could be because strangely you can't drag and drop from it's own directory view pane, you either have to open several icons/libraries at once from the open dialog or drag and drop them from explorer. It's also very easy to lose what you're doing because clicking on a file in the directory pane with switch to that file without prompting to save. It was last updated in 2002 so it's probably not under active development.

@icon sushi is by far the better program, while not as easy to use for browsing and easier to make mistakes with (it allows you to reorder the images sizes/depths into unrecommended orders, using the blue arrows or Ctrl+up/down arrow keys whereas IconShop takes care of ordering for you), it is clearer as to what size and depths each individual image is. It also has very helpful keyboard shortcuts, hint: use Ctrl+1, Ctrl+2, Ctrl+3 to switch to the different list views. While it doesn't have functionality to edit the icon itself it does have functionallity to edit the transparency mask and alpha channel. The last beta was out April 3, 2005, so this is definately one to watch.

update it appears that neither can save icl libraries with alpha transparency. I'm not sure if it's a limitation of the applications or the format. The alpha information isn't lost, it just doesn't get picked up when I try to using the icl in tlb.
Yuri Kobets
Posting Freak
*****


10
6,208 posts 429 threads Joined: Jan 2002
04-07-2005, 05:33 AM -
#11
Thank you for your investigation. I try to fix the bug also Smile
The TORDEX Team
http://www.tordex.com
Sam Hasler
Member
***


0
93 posts 17 threads Joined: Jun 2003
11-04-2005, 09:58 AM -
#12
Has there been any progress on this?

(I wonder sometimes if I'm the only person left on Windows 98, in the world, let alone tlb users)


Forum Jump:


Users browsing this thread: 1 Guest(s)