Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » coolbar icon problem
coolbar icon problem [message #437666] Fri, 30 September 2005 17:30 Go to next message
imre farkas is currently offline imre farkasFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

I have an icon with 16*16 pixels in png format. When I use this icon on
for example any view it is good, but on the coolbar it looks terrible.
Has the coolbar special icon format?

thx in advance
-farkas
Re: coolbar icon problem [message #437673 is a reply to message #437666] Fri, 30 September 2005 22:49 Go to previous message
Matthew Hatem is currently offline Matthew HatemFriend
Messages: 47
Registered: July 2009
Member
farkas wrote:
> Hi,
>
> I have an icon with 16*16 pixels in png format. When I use this icon on
> for example any view it is good, but on the coolbar it looks terrible.
> Has the coolbar special icon format?
>
> thx in advance
> -farkas

I have seen this too. Seems some SWT widgets don't like PNGs. For
example, MenuItems with PNGs look fine and ToolItems with PNGs look bad.

A workaround is to use the GC class to draw the PNG to an offscreen
image that has the same background color as the Toolbar. GC does render
PNGs properly using drawImage.

-m@
Previous Topic:Working with XML files
Next Topic:Dynamic plugin loading in RCP
Goto Forum:
  


Current Time: Sat Dec 07 22:20:03 GMT 2024

Powered by FUDForum. Page generated in 0.03399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top