Hi,
(I hope this is not another stupid question...)
I'm trying to crop an image horizontally to simulate an old-fashioned LED VU meter. Each 0.10 seconds or so the Image width must change randomly to give a realistic effect. However this seemingly simple task has proved quite tricky, for I had to insert the VU Image inside a frame, change the Image size using
SetObjectSize() (
SetScale() doesn't work for this), then call
SetPosition() to compensate for the fact that the scale is based on Image insertion point, i.e. the center, not the left. I had to experiment a lot to overcome the jitter caused by dividing odd widths by 2. It gets better if I offset the image quite a bit, but after half a minute or so the jitter starts again (I suppose
SetObjectSize() deforms the Image after a while).
Please look at the attachment to see what I mean.
Isn't there a simpler way to do this?
Thanks in advance for any help.