Sie sind nicht angemeldet.

1

Samstag, 5. Juni 2010, 17:48

rounded corner with image background ?

Hi,

I'd like to know if it's possible to have a panorama which has a rounded border, and behind the panorama, an image ?

The background image can be set with the parent="BGLAYER", but the problem is the rounded border.

It's easy to make a rounded border with four plugins that load png ... But it doesn't fit my requirement, as the background will not be a still color. And the background image is resize depending on the stagewidth and stageheight ...

So, is there a way to have an mask that apply on the panorama. A mask that look something we can have in AS3.

Thanks for your answer !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

2

Sonntag, 6. Juni 2010, 11:48

Ok, in fact, it's really simple in AS3 :

Just use the krpano.get("image.layer") sprite, and apply a mask over it !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

3

Montag, 3. Februar 2020, 04:36

Hello!

I know this is a very, very old thread, but hey, this is my question at the moment too, and the solution by nelk would not work since now we're all doing html5 :)

Actually, my problem is relatively simpler, I don't need a background image behind the panorama, just a simple color. I gave the canvas containing the panorama a border-radius and it shows, but can't change the color of the layer behind the corners no matter which div element I try to apply background-color to.

Klaus, is this possible somehow?

Ähnliche Themen