Sie sind nicht angemeldet.

1

Donnerstag, 14. Januar 2010, 13:01

getting dimensions of view and caching images

Hi, I'm new to the forum.

Making steady progress with my programming but a quick question

How do I find the dimensions of the current view?
Particularly I want to make a plugin with a height that is 100% - 150px ( or maybe apply a bit more maths to the dimensions)

Another quick question, is it possible to pass images that have been loaded and stored via javascript ( ie new Image() ) to krpano?

Thanks for any help

Tudor

2

Dienstag, 19. Januar 2010, 18:26

Okay - first bit fixed
...

but would love to know if anyone has a way of passing images created in javascript to krpano without having to go via the server

thanks for any thoughts

T *confused*

3

Dienstag, 19. Januar 2010, 23:54

Hi,
How do I find the dimensions of the current view?
Particularly I want to make a plugin with a height that is 100% - 150px ( or maybe apply a bit more maths to the dimensions)
there are the global "stagewidth" and "stageheight" variables,
they store the size in pixels of the current view,


but would love to know if anyone has a way of passing images created in javascript to krpano without having to go via the server
sorry, I think there is no way...
(or - only via manually sending the bytes of the image to flash and then re-building the image manually in flash, e.g. via a plugin)

best regards,
Klaus

4

Mittwoch, 20. Januar 2010, 15:30

Thanks Klaus,

Ähnliche Themen