Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » pocket pc toolbar icons
pocket pc toolbar icons [message #457341] Thu, 23 June 2005 12:37 Go to next message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Does anyone have experience of creating icons for MenuItems on the PocketPC
shell? I've been trying to create images for MenuItems, similar to what you
would find in other pocket PC apps. It seems that you need to use 16x16
pixel images, but the colour palette seems to affect things drastically.
(see attached image.)

I'm using 16x16 gifs, I've tried the web colour palette in photoshop but I'm
still getting distorted icons on the pocket pc. The image shows a floppy
disk icon at the bottom of the screen that is distorted. different colour
palettes are causing different pixels that are maybe out of gamut? Anyone
come across this before?

Andy


Re: pocket pc toolbar icons [message #457361 is a reply to message #457341] Fri, 24 June 2005 06:51 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
It seems like i need to keep images to 16 colours only, but even then my
results are patchy. Anyone any ideas? The actual code isn't too tricky, but
the display of the images is really a mess.

final Menu mb = new Menu(shell, SWT.BAR);
final MenuItem icon1 = new MenuItem(mb,SWT.PUSH);
icon1.setImage(myIcon1);

andy


"Andy Harrison" <andyh@agaricus.co.uk> wrote in message
news:d9eaee$aoo$1@news.eclipse.org...
> Does anyone have experience of creating icons for MenuItems on the
PocketPC
> shell? I've been trying to create images for MenuItems, similar to what
you
> would find in other pocket PC apps. It seems that you need to use 16x16
> pixel images, but the colour palette seems to affect things drastically.
> (see attached image.)
>
> I'm using 16x16 gifs, I've tried the web colour palette in photoshop but
I'm
> still getting distorted icons on the pocket pc. The image shows a floppy
> disk icon at the bottom of the screen that is distorted. different colour
> palettes are causing different pixels that are maybe out of gamut? Anyone
> come across this before?
>
> Andy
>
>
>
Re: pocket pc toolbar icons [message #457427 is a reply to message #457361] Fri, 24 June 2005 15:30 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Enter a bug report and attach the images in question and snippet that shows
the problem. Thanks!

"Andy Harrison" <andyh@agaricus.co.uk> wrote in message
news:d9gah7$ioq$1@news.eclipse.org...
> It seems like i need to keep images to 16 colours only, but even then my
> results are patchy. Anyone any ideas? The actual code isn't too tricky,
but
> the display of the images is really a mess.
>
> final Menu mb = new Menu(shell, SWT.BAR);
> final MenuItem icon1 = new MenuItem(mb,SWT.PUSH);
> icon1.setImage(myIcon1);
>
> andy
>
>
> "Andy Harrison" <andyh@agaricus.co.uk> wrote in message
> news:d9eaee$aoo$1@news.eclipse.org...
> > Does anyone have experience of creating icons for MenuItems on the
> PocketPC
> > shell? I've been trying to create images for MenuItems, similar to what
> you
> > would find in other pocket PC apps. It seems that you need to use 16x16
> > pixel images, but the colour palette seems to affect things drastically.
> > (see attached image.)
> >
> > I'm using 16x16 gifs, I've tried the web colour palette in photoshop but
> I'm
> > still getting distorted icons on the pocket pc. The image shows a floppy
> > disk icon at the bottom of the screen that is distorted. different
colour
> > palettes are causing different pixels that are maybe out of gamut?
Anyone
> > come across this before?
> >
> > Andy
> >
> >
> >
>
>
Re: pocket pc toolbar icons [message #457594 is a reply to message #457427] Tue, 28 June 2005 12:25 Go to previous message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Thanks Steve,

I've gotten to the bottom of this now I think. You must always use the basic
windows 16 colour palette or these types of issues arise. Must create
16x16x16 .ico files to use them on the toolbar. Also - when creating ico
files, the screen on your desktop PC should be set to 32bit colour. If you
use 16bit colour for instance you cannot seem to access or save the basic 16
windows colours in your icon editor of choice. I used "Icon Edit" in the end
to create the icons I needed.

I'd imagine all this is a limitation of the PocketPC, rather than SWT. One
to watch for though if you are using SWT on the PocketPC.

Andy

"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:d9h8u0$pmq$1@news.eclipse.org...
> Enter a bug report and attach the images in question and snippet that
shows
> the problem. Thanks!
>
> "Andy Harrison" <andyh@agaricus.co.uk> wrote in message
> news:d9gah7$ioq$1@news.eclipse.org...
> > It seems like i need to keep images to 16 colours only, but even then my
> > results are patchy. Anyone any ideas? The actual code isn't too tricky,
> but
> > the display of the images is really a mess.
> >
> > final Menu mb = new Menu(shell, SWT.BAR);
> > final MenuItem icon1 = new MenuItem(mb,SWT.PUSH);
> > icon1.setImage(myIcon1);
> >
> > andy
> >
> >
> > "Andy Harrison" <andyh@agaricus.co.uk> wrote in message
> > news:d9eaee$aoo$1@news.eclipse.org...
> > > Does anyone have experience of creating icons for MenuItems on the
> > PocketPC
> > > shell? I've been trying to create images for MenuItems, similar to
what
> > you
> > > would find in other pocket PC apps. It seems that you need to use
16x16
> > > pixel images, but the colour palette seems to affect things
drastically.
> > > (see attached image.)
> > >
> > > I'm using 16x16 gifs, I've tried the web colour palette in photoshop
but
> > I'm
> > > still getting distorted icons on the pocket pc. The image shows a
floppy
> > > disk icon at the bottom of the screen that is distorted. different
> colour
> > > palettes are causing different pixels that are maybe out of gamut?
> Anyone
> > > come across this before?
> > >
> > > Andy
Previous Topic:Disabling Selection on a List
Next Topic:ActiveX control with SWT?
Goto Forum:
  


Current Time: Sat Apr 27 00:23:31 GMT 2024

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

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

Back to the top