Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2008, 05:51 PM
discocandy's Avatar
discocandy discocandy is offline
Administrator
 
Join Date: Jan 2008
Location: North of Holland near the city of Hoorn
Posts: 376
Downloads: 0
Uploads: 0
Send a message via MSN to discocandy Send a message via Skype™ to discocandy
Default bigger normal image in fullscreen question

I am working on a tour where the windowed version cannot be bigger then 600x300 px.
But all fuctions must be working.
Now there are some images you can klick on to view but at 250px high in fullscreen is much to small. 600 pix woud be usefull

I guess I can do it with a onEnterFullscreen and onExitFullscreen function.
but I cannot get it right for some reason..
can anyone give me an example script to do this??


hope you all understand what I mean.
thnx for reading!
__________________
We are here on Earth to do good to others. What the others are here for, I don't know. Just look around 360 and see a beautiful world
Reply With Quote
  #2  
Old 10-28-2008, 07:39 PM
nidrig nidrig is offline
Senior Member
 
Join Date: Sep 2007
Location: Switzerland
Posts: 148
Downloads: 1
Uploads: 0
Default

Hi,

If I get it right, you want your images to be larger in fullscreen mode?

On your spot containing the image you want to enlarge, you can write custom functions for onEnterFullscreen and onExitFullscreen. Playing with the scaleX and scalY should do it.

Let's say:

Code:
<spot id="image" url="someImage.jpg" onEnterFullscreen="global.doEnlarge" onExitFullscreen="global.doReduce" />
in the global part:

Code:
doEnlarge="image.scaleX=1.5;image.scaleY=1.5"
doReduce="image.scaleX=1;image.scaleY=1;"
Hope it work.

cu
Reply With Quote
  #3  
Old 10-28-2008, 08:37 PM
discocandy's Avatar
discocandy discocandy is offline
Administrator
 
Join Date: Jan 2008
Location: North of Holland near the city of Hoorn
Posts: 376
Downloads: 0
Uploads: 0
Send a message via MSN to discocandy Send a message via Skype™ to discocandy
Default

Quote:
Originally Posted by nidrig View Post
Playing with the scaleX and scalY should do it.
Ik know.. but I do not like the quality of the image then..
So I want to use normal size images instead..
but still you gave me an Idea to look into..
__________________
We are here on Earth to do good to others. What the others are here for, I don't know. Just look around 360 and see a beautiful world
Reply With Quote
  #4  
Old 10-28-2008, 08:43 PM
nidrig nidrig is offline
Senior Member
 
Join Date: Sep 2007
Location: Switzerland
Posts: 148
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by discocandy View Post
Ik know.. but I do not like the quality of the image then..
So I want to use normal size images instead..
but still you gave me an Idea to look into..
What's the size of the original image?
Reply With Quote
  #5  
Old 10-29-2008, 12:57 PM
phberlin's Avatar
phberlin phberlin is offline
Senior Member
 
Join Date: Aug 2007
Location: Berlin, Germany
Posts: 300
Downloads: 1
Uploads: 0
Default

You might simply exchange the image's url when entering / leaving fullscreen.
For example like this:

Code:
<spot id="image" url="image_small_version.jpg" onEnterFullscreen="global.doEnlarge" onExitFullscreen="global.doReduce" />

doEnlarge="image.url=image_big_version.jpg;"
doReduce="image.url=image_small_version.jpg;"
Regards, Philipp
Reply With Quote
  #6  
Old 10-29-2008, 07:20 PM
discocandy's Avatar
discocandy discocandy is offline
Administrator
 
Join Date: Jan 2008
Location: North of Holland near the city of Hoorn
Posts: 376
Downloads: 0
Uploads: 0
Send a message via MSN to discocandy Send a message via Skype™ to discocandy
Default

thnx phillip.
Like I wrote, nidrig gave me an idea with his code.. and you saw the same thing

Nice that you offered help.
__________________
We are here on Earth to do good to others. What the others are here for, I don't know. Just look around 360 and see a beautiful world
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:58 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.