combining paths
-
hello there,
maybe a noob question, but i am stuck here..i am creating a custom keyboard and I have all the key areas saved in an array.
I want to be able to add a drop shadow that highlights a scale on the keyboard. my intention is to combine the areas of all rectangles that fit the scale to a single path object (or multiple if there is a gap), so that the shadow will enclose adjacent keys.I created a path with Content.createPath and tried iterating over the array that contains the areas using a loop and path.addRectangle, but the path data always only shows a single rectangle ( four values).
any hints?
cheers :)
Edit:
okay so i managed to draw that path (using g.drawpath) and it works fine, but when I add the same data to g.drawDropShadowFromPath i get an error: Point is not an array