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

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!