morgancaroline
Programmer
I'm using layers and want to clip a certain section of a layer. If I write:
layer.style.clip = 'rect(' + cliptop + ' ' + clipright + ' ' + clipbottom + ' ' + clipleft + ')';
it shows the layer from the point (cliptop,clipright) to (clipbottom,clipleft) but i want some kind of inverted clip command so that instead of showing a layer from one point to another it hides that layer from one pt to another so as to achieve an r-shaped layer as oppose to a square shaped layer.
I thought of using poly instead of rect and defining 7 points but the computer didn't see to like the poly command.
I also thought about using:
layer.style.visibility = "hidden";
but i don't know where the command to define the rectangle that i want hidden should go.
hope you can help
thanx
layer.style.clip = 'rect(' + cliptop + ' ' + clipright + ' ' + clipbottom + ' ' + clipleft + ')';
it shows the layer from the point (cliptop,clipright) to (clipbottom,clipleft) but i want some kind of inverted clip command so that instead of showing a layer from one point to another it hides that layer from one pt to another so as to achieve an r-shaped layer as oppose to a square shaped layer.
I thought of using poly instead of rect and defining 7 points but the computer didn't see to like the poly command.
I also thought about using:
layer.style.visibility = "hidden";
but i don't know where the command to define the rectangle that i want hidden should go.
hope you can help
thanx