One question about transparent color | developer.brewmp.com One question about transparent color | developer.brewmp.com

Developer

One question about transparent color

According to BREW testing document, the transparent color for color phone is Magenta (255, 0, 255). So all the icon, thumbnail and image's backgroud should be Magenta. I tried on vx4400. Magenta does not seem to be the transparent color, it is still Magenta). Any idea?

Does BREW require the background to be transparent for other images used in the Applet, for example the icons in a menu item?

Thanks a lot.

Magenta is the transparent color on the VX4400. Most likely your problem is that either:
1) during color table reduction the color changed to something like 255, 2, 255 -- ie: just slightly off Magenta. On some phones, like the T720, this works fine because the native format sees that as Magenta anyway.
2) Magenta isn't the first color in your color table. Some phones won't do transparency if the Magenta isn't the first entry in the color table.
Hope this helps,
Ed

Magenta is the transparent color on the VX4400. Most likely your problem is that either:
1) during color table reduction the color changed to something like 255, 2, 255 -- ie: just slightly off Magenta. On some phones, like the T720, this works fine because the native format sees that as Magenta anyway.
2) Magenta isn't the first color in your color table. Some phones won't do transparency if the Magenta isn't the first entry in the color table.
Hope this helps,
Ed

Thanks for your reply. The problem is that I used a PNG file. :( After converting it to a BMP , it works fine.

Thanks for your reply. The problem is that I used a PNG file. :( After converting it to a BMP , it works fine.

What have you done to the bmp file and that become transparent
.

What have you done to the bmp file and that become transparent
.

And the bmp file is too big!

And the bmp file is too big!

Thank you, ezavada.
But how can I change the picture's color table?

Thank you, ezavada.
But how can I change the picture's color table?

Whatever art package you use to create/manipulate your images it will have a way of manipulating the palette of indexed pictures. Check the manual or help file of your art package.

Whatever art package you use to create/manipulate your images it will have a way of manipulating the palette of indexed pictures. Check the manual or help file of your art package.

Where can I get a the correct BREW 256 color pallette? I take it I can't create a custom one? That would prob have crazy results. :rolleyes:
I'm using photo shop and it offers me numerous options for 256 color pallettes.
Unfortnately i'm creating icons for someone else and can't test immeadiately.
Can I make use of alpha channels?

Where can I get a the correct BREW 256 color pallette? I take it I can't create a custom one? That would prob have crazy results. :rolleyes:
I'm using photo shop and it offers me numerous options for 256 color pallettes.
Unfortnately i'm creating icons for someone else and can't test immeadiately.
Can I make use of alpha channels?

All handsets today are not palettized so you can use any palette you wish.
You cannot use alpha channels but you can define transparency in a bitmap. On Brew 1.1 phones the transparent color is hard-wired to hot pink (255/0/255). On Brew 2.x handsets and up, the transparent color can be defined by the application.

All handsets today are not palettized so you can use any palette you wish.
You cannot use alpha channels but you can define transparency in a bitmap. On Brew 1.1 phones the transparent color is hard-wired to hot pink (255/0/255). On Brew 2.x handsets and up, the transparent color can be defined by the application.

In Photoshop:
1) Load your BMP
2) Go to the Menu: Image --> Mode --> Color Table...
3) Futz with the table until magenta is the first color.
4) Save it
fresh_10012 wrote:Where can I get a the correct BREW 256 color pallette? I take it I can't create a custom one? That would prob have crazy results. :rolleyes:
I'm using photo shop and it offers me numerous options for 256 color pallettes.
Unfortnately i'm creating icons for someone else and can't test immeadiately.
Can I make use of alpha channels?

In Photoshop:
1) Load your BMP
2) Go to the Menu: Image --> Mode --> Color Table...
3) Futz with the table until magenta is the first color.
4) Save it
fresh_10012 wrote:Where can I get a the correct BREW 256 color pallette? I take it I can't create a custom one? That would prob have crazy results. :rolleyes:
I'm using photo shop and it offers me numerous options for 256 color pallettes.
Unfortnately i'm creating icons for someone else and can't test immeadiately.
Can I make use of alpha channels?