Hey, Thanks for your advice and even making a picture to help visually, but I'm sorry to tell you that your answer wasn't exactly what I wanted to question. I promise I'll make the question clearer this time.
Here's my new code, so no more weird X Y or height and width values. Just plain 600 by 600 image with X=0 Y=0.
Code: Select all
[Variables]
Height=600
Width=600
[MeasureOffsetX]
Measure=Calc
Formula=(#Width#/2)
[MeasureOffsetY]
Measure=Calc
Formula=(#Height#/2)
[MeterPointer]
MeasureName=MeasureTime
Meter=ROTATOR
StartAngle=[MeasureRadians]
RotationAngle=-2.083333333
ValueReminder=60
X=0
Y=0
W=#Width#
H=#Height#
ImageName=pointer.png
OffsetX=[MeasureOffsetX]
OffsetY=[MeasureOffsetY]
DynamicVariables=1
Ok..so the center of rotation is at 300,300. and the original pointer.png inside my skin folder is 600X600 reso.
My Clock looks fine, when the background and everything is at 600X600 (H=600 W=600), but since my goal is to create a resizable clock, I want everything to decrease or increase in dimension when I change the variables H and W.
Let's say for now I want to change the dimensions to: H=400 W=400.
But the problem is, for the ROTATOR meter, I cannot change the point.png image's resolution (not the center of rotation). SO.. when I try to change the H and W to 400, the center of rotation will move to 200,200 but the pointer.png in [MeterPointer] will not rescale to 400X400.
1st. My pointer will not resize itself, causing my second hand to protrude out of the rim of the clock if I make the resolution < 600X600
2nd. This causes my pointer.png to rotate at the wrong center (200,200) because my pointer.png is still in 600X600 resolution
(You can ignore the 2nd problem, I've found a solution)
My question is now, how do I resize the 600X600 pointer.png image in the ROTATOR meter as if you would resize an image in a regular IMAGE meter? because changing the height and width of the ROTATOR meter will not change the size of the image in the meter.
Any help advice or solutions will be appricated. If there's no way to resize the image in the rotator meters let me know as well.
Thanks again.