Page 1 of 1

[SOLVED] ImageryComponent rotation

Posted: Fri Aug 26, 2016 10:16
by kiske1
Hello! A quick one... :)

Is it possible to rotate only a single ImageryComponent within a widget via code or XML? Maybe rotating only the area inside?

Thanks!

Re: ImageryComponent rotation

Posted: Fri Aug 26, 2016 16:58
by Ident
As of now, no way to rotate anything there. You can only rotate the entire widget.

What is your use-case? Do you intend to rotate by multiples of 90° to reuse imagery or something else?

Re: ImageryComponent rotation

Posted: Mon Aug 29, 2016 06:45
by kiske1
Thank you for the answer, the use case is a button wich holds an image inside a frame. The frame is slightly rotated, so the image in the imagerycomponent is rotated too. To achieve this I put the image already rotated in the imageset, but this is a waste of imageset space, so I thought about rotating the image after the widget creation.
I think I'll go with creating my own class wich manages the two separate widgets as one.

Re: ImageryComponent rotation

Posted: Tue Aug 30, 2016 19:26
by Ident
Why not use a child widget just for the image?

Re: ImageryComponent rotation

Posted: Tue Aug 30, 2016 19:43
by kiske1
Ident wrote:Why not use a child widget just for the image?


Yes! that's what I've finally done... :wink:

Re: [SOLVED] ImageryComponent rotation

Posted: Tue Aug 30, 2016 19:44
by Ident
Ok great! Thanks for marking it solved.