TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => HammerSkin => Topic started by: tree99 on November 28, 2004, 04:05:45 AM

Title: Scaled Sat & Radar image. Is zooming possible?
Post by: tree99 on November 28, 2004, 04:05:45 AM
This is my first post, so appologies for any error in forum etiquette.  I am also new to skinning and have only had a little programming experience with C++ about 10 years ago, none since.
uk_skinner probably came across this issue while writing the 8nav.  Or maybe Witchel has seen it.
I have been messing with some code to try and change the position of the sat images so that they are centered on my city.  In order to do this I need the starting pixel position to be negative so that my city lines up centered on the screen.  I have in the process discovered that I can scale the image when they are .jpgs not when they are .gifs.   When I used this code with the gif images, they just change position.
I show the effect of having just the y dimension negative.  I tried this with both and the image was scaled in both the X and Y directions.

When I trace through the navigation buttons without my addvar code I see that the variables become negative but the image doesn't  scale.  It pans.
This could be very useful for adding ZOOM IN and ZOOM OUT to the navigation.

Here is my code change:
////////////////////My additions//////////////////////

   color,font,10_10_10
   
   storevar,var73=%var3%    //used to watch var3
   storevar,var83=%var23%   //used to watch var23
////////addvar,var3,-150   //commented out to test what was causing zoom
    addvar,var23,-100      //when this variable is negative the image gets scaled.
///////////////////////////////////////////////////////////


///////////////UNCHANGED CODE ///////////////////////////

   image,%var3%,%var23%,%var51%.png
   image,%var3%,%var23%,%var51%.jpg
   image,%var3%,%var23%,%var51%.gif

////////////////////My additions///////////////////////////////////////
////used temporarily to print value of variable to screen for tracing/////////////
   cleararea,17,112,110,60
   text,20,115,Variable 3 before :%var73%,l,s  
   text,20,125,Variable 23 before :%var83%,l,s
   text,30,145,after Variable 3:%var3%,l,s
   text,30,155,after Variable 23:%var23%,l,s

Thanks everyone for ideas.  And thanks to all for great skins.
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: Wichtel on November 28, 2004, 05:20:37 AM
At the moment there is no way to zoom in or out, because TD+ doesn´t support this. Only moving the Picture is possible
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: tree99 on November 28, 2004, 07:14:13 AM
As I look closer at the image I realize that scaling did NOT occur.  I was mistaken.  OOPS!
what did occur was what I wanted, the image is shifted from the start.

Now I am figuring out how to make it work without messing up the navigation.

Danke Wichtel
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: Wichtel on November 28, 2004, 08:21:33 AM
If you want to change the startposition of the Image, this is no Problem.

Search in the Skin for this commands:
In Region 3

imagebutton,177,78,Radar.png,t,7,4,6,-1
button,177,78,32,32,-1,6,var3=-8,
button,177,78,32,32,-1,6,var23=18,
button,177,78,32,32,-1,6,var25=0,
button,177,78,32,32,3,4,999
button,177,78,32,32,1,4,999

In Region 8,0

text,91,160,Satellite & Radar,l
imagebutton,87,158,wetter_auswahl_popup_button.png,t,7,4,7,-1
button,87,158,100,15,-1,6,var51=1
button,87,158,100,15,-1,6,var3=-8
button,87,158,100,15,-1,6,var23=18
button,87,158,100,15,-1,6,var25=0
button,87,158,100,15,1,4,999   
button,87,158,100,15,3,4,999
button,87,158,100,15,8,4,999

var 3 and var23 these are for the start position responsible. Play a little with the 8 and 18

in Region 7,6 and 7,7 the same for the Image reset
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: uk_skinner on November 28, 2004, 08:41:20 AM
tree99:

 As Wichtel said, it is not possible to zoom in/out the image within TP.  One workaound was to use image viewer then you can do everything but you will out of TP when you do that.

However, depends on the "mood" of secret Santa.   (http://www.cheesebuerger.de/images/midi/xmas/f010.gif) We might have something to "resize" image.
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: tree99 on November 28, 2004, 09:38:36 AM
thanks, that makes things easy for me.  i was playing around with the start position to see what values work for each map.  I need different values depending on what city is active.  Then I will use the different values for each city.

..secret santa...something to "resize" images?  You guys never quit.

Sometimes I wish Windows UI was as easy as the ppc and as customizable as TPlus.
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: uk_skinner on November 28, 2004, 09:43:47 AM
Quote from: tree99thanks, that makes things easy for me.  i was playing around with the start position to see what values work for each map.  I need different values depending on what city is active.  Then I will use the different values for each city.

..secret santa...something to "resize" images?  You guys never quit.

Sometimes I wish Windows UI was as easy as the ppc and as customizable as TPlus.

tree99:  Yes, you can use "if..else" to "customer" var3 and var23 in the radar region for city.  Example.

if,var,var51,,=,1
storevar,var3=30
storevar,var23=15
else
endif

You even can add some label or image in that "if..else" code, such as "tree99's Home"..
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: ZapMe1 on November 28, 2004, 10:43:28 AM
@tree99
Maybe This (http://www.visualit.co.uk/zoom.htm#) is what your looking for !!

It's $12 usd, but a pretty nice little app !!   Has a 2-day trial !!
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: uk_skinner on November 28, 2004, 10:46:32 AM
Cool thing!!! But $12.00 :cry:
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: tree99 on November 28, 2004, 06:07:13 PM
ZapMe

I was actually trying to do something completely different from zooming.  I didn't pay enough attention to the results of my code and thought that the image was scaled.  

The radar maps I am downloading are very large and so I was coding to have the image start position be centered where my city is.  uk_skinner and Witchel posted the solution

that software looks pretty cool, but not $12.00
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: uk_skinner on November 28, 2004, 07:21:45 PM
tree99:

  Just one more suggestion you can consider and I, myslef also used it from time to time and have mentioned a lot of times in this forum.  If your image is really large, I would suggest you use whatever image viewer came with your device.  If you have an iPAQ, the build-in iPAQ Image Zone is quite useful.  If you make a button to trigger a shortcut that point to your downloaded image file, the default viewer will open it up.  The up-side is you get all scolling, panning and zoom in/out to navigate the image.  Of course, the down side is not in TP, but once you hit ok, you will return back to TP.
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: Timmy on November 29, 2004, 03:24:04 AM
@tree99 and @Uk_skinner,

I have had the same 'problem'. What I did to solve this:

• I put the url's in my pda "FAVORITE". On my computer they are now automatic in the compute "Moblle Favorite" folder.
• I've made an automatic refresh plan on my computer. Everytime I sync my pda, the pda get's automatic the newest data.
• I use Wisbar adv, and connected two buds with an favorite-url. In Wisbar adv you can connect two things with one bud (by clicking or by pushing), so I have four radar images I use at this moment.

Nice and easy!!

Timmy
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: uk_skinner on November 29, 2004, 03:32:14 AM
Quote from: Timmy@tree99 and @Uk_skinner,

I have had the same 'problem'. What I did to solve this:

• I put the url's in my pda "FAVORITE". On my computer they are now automatic in the compute "Moblle Favorite" folder.
• I've made an automatic refresh plan on my computer. Everytime I sync my pda, the pda get's automatic the newest data.
• I use Wisbar adv, and connected two buds with an favorite-url. In Wisbar adv you can connect two things with one bud (by clicking or by pushing), so I have four radar images I use at this moment.

Nice and easy!!

Timmy

Timmy, sounds interesting.  But questions, if you don't mind.

1) So you can just do the image and there will be no extra ad, right?
2) How do you view the image, PIE?
3) The image in fact was downloaded into Internet Temporary Folder, right?  Can you locate the file?

Thanks.
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: Timmy on November 29, 2004, 03:46:15 AM
Quote from: uk_skinnerTimmy, sounds interesting.  But questions, if you don't mind.

1) So you can just do the image and there will be no extra ad, right?
2) How do you view the image, PIE?
3) The image in fact was downloaded into Internet Temporary Folder, right?  Can you locate the file?

Thanks.

Hello Uk_skinner,

Your 1) I don't understand. Can you ask your question in other words again, please?
2) Yes, the picture comes via PIE on the screen.
3) Locating is very easy. Via the 'making favorite steps' in PIE you can give the name you want to your favorite url. That same name you can find in the \windows\favorite\... folder of your pda.

Hope, these answers helps.

Timmy
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: uk_skinner on November 29, 2004, 03:55:52 AM
Quote from: Timmy

Hello Uk_skinner,

Your 1) I don't understand. Can you ask your question in other words again, please?
2) Yes, the picture comes via PIE on the screen.
3) Locating is very easy. Via the 'making favorite steps' in PIE you can give the name you want to your favorite url. That same name you can find in the \windows\favorite\... folder of your pda.

Hope, these answers helps.

Timmy

Timmy, sorry, it is almost 4:00AM here, my brain is not very functional. (http://www.cheesebuerger.de/images/midi/muede/f045.gif)
I think I know what you were doing.

You can resize the image in the html and open it up in PIE.. :wink:
Title: Scaled Sat & Radar image. Is zooming possible?
Post by: tree99 on November 29, 2004, 05:33:25 AM
I have also been making shortcuts to the image files that are downloaded by the radar.exe and its' script.  This way I can view them quickly within TP, or use TP to jump to my graphics viewer.  What is nice about the viewer is the panning and zooming are very fast and I can also view animated files.