• Welcome to TodayPlus Boards v2.
 

imagemeter transparency

Started by MadTxn, December 29, 2003, 11:50:18 AM

Previous topic - Next topic

MadTxn

I'm trying to use the imagemeter command to show moon phases, and I'm having a transparency issue.

this command:

image,0,0,moon_phases.png,t


shows the image with a transparent background, while the below command does not.  


imagemeter,0,0,%var18%,moon_phases.png,t,0,200


Any ideas?  BTW, the replacement part of it works fine.

fishboy

This might be a bug with this command, but adding the replacement color option "r" to the <image options> parameter seems to make it work.
imagemeter,0,0,%var18%,moon_phases.png,tr,0,200

Also make sure you are specifying the transparency color to use, such as "color,transparent,255_0_255" before the imagemeter command (you may be already doing this, but it can never hurt to state the obvious  :) )
Axim X5 Advanced, Windows Mobile 2003

MadTxn

I am.  I have the two commands in the exact same spot, just one or the other commented out.  The plain "image" command works, but the "imagemeter" one doesn't.  

I don't know if it makes a difference, but my transparent color is green (0_255_0) because of the PI icons, but pink doesn't work either.

Here's a screenshot with the below commands:

image,0,0,moon_phases.png,t
imagemeter,0,26,%var18%,moon_phases.png,t,0,200

srs

are you using an alphablended png or a png with its own transparency ?

MadTxn

That's a good question.  I have no idea...  I just downloaded the image from here.  I'm assuming it makes a difference?

srs

try converting it to a bmp or gif and see if it works.  alphablended and natively transparent pngs will not work with the imagemeter command.

MadTxn

I tried gif and bmp, neither works.  It must be something with my setup, because it works for others, doesn't it?

srs

post your image files and I will take a look and see if I can spot something.

MadTxn

Attached are the various images I've used, and here are the relevant lines of code.


color,transparent,0_255_0
color,replacement,6,0_0_0
color,shadow,125_125_125

...

calcvar,var18,moonphase,%var6%
image,0,0,moon_phases.png,t
imagemeter,0,26,%var18%,moon_phases.png,t,0,7


I'll also try to make a new image when I get home.  I don't have PShop here at work.  Thanks for the help.

Timmy

Quote from: MadTxnAttached are the various images I've used, and here are the relevant lines of code.
color,transparent,0_255_0
color,replacement,6,0_0_0
color,shadow,125_125_125
...
calcvar,var18,moonphase,%var6%
image,0,0,moon_phases.png,t
imagemeter,0,26,%var18%,moon_phases.png,t,0,7
.

I don't know, but maybe it will help you a bit. On this tread I've found some good moonphase-stuff in the Recombinant skin with moon.zip :

http://www.dark-mojo.com/todayplus/viewtopic.php?p=5826&sid=9d6b63068aac56d95b330b1b43414240#5826
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

MadTxn

Quote from: fishboyThis might be a bug with this command, but adding the replacement color option "r" to the <image options> parameter seems to make it work.
imagemeter,0,0,%var18%,moon_phases.png,tr,0,200

For some reason, I JUST saw this.  True, that does work, until you change the pink to green, as I've had to do.  Here's what I get. (note, I moved the non-working imagemeter to the same row as the working image)

You can see that the black changed to pink, and the background is still non-transparent.  I will create a new image later tonight, and I _believe_ that will fix it.

joelw135

How would I convert the moon phases png to 15 X 15 for each image. I have it set up to match the Sunrise Sunset images in my skin.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Broesel

Quote from: joelw135How would I convert the moon phases png to 15 X 15 for each image. I have it set up to match the Sunrise Sunset images in my skin.

Hi Joel,

The moon phases.png is 25 x 200 px.

If you want to use it with the imagemeter-command your phases-pic
has to be 15 x 120 px.

That should work for you.

Greetings Broesel

joelw135

Thanks, but whitch one do I download since one showed up on my Axim with a green background?

Never mind, I had to save it as a bmp.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Broesel

Quote from: joelw135Thanks, but whitch one do I download since one showed up on my Axim with a green background?

Hmm,  give this one a try:

Greetings Broesel