I think that only a “regular” polygon graphic can be rotated by setting its “angle” property.That means that a roundRect or rectangular graphic do not respond at all. LC will not throw an error, and the property sticks, but the arc itself does not change..
I could be wrong about all this. Crig > On May 30, 2024, at 9:21 PM, Neville Smythe via use-livecode > <use-livecode@lists.runrev.com> wrote: > > I have a need for rotated graphic objects, in particular a roundrect graphic. > > Export snapshot from object gives a nice image that can serve in place of the > graphic except that it has black spots at each corner outside the rounded > frame. Which means the image can really only be used against a black > background. > > Ideally the background outside the rounded frame should be transparent, > although I suspect that may not be possible with the bitmap image format > produced. Is there any setting that can fix this (a mask?), or failing that > set the colour of these pixels (I presume the snapshot is actually produced > by rendering the object in a hidden buffer with default black background) . > > The alternative solution of producing a screenshot against a background of > the required colour is not practical; it requires displaying the object > against an empty visible region of the screen before taking the screenshot > and therefore an unacceptable flash for the user. > > Neville Smythe > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode