Hi Roopesh,
You can use MeterPointer.setShape2 to use a custom shape as the pointer. A line is just a
thin rectangle, so it should be like (in C#):
private static readonly int[] lineShape = {-5, 0, 5, 0, 5, 1000, -5, 1000};
m.addPointer(myValue).setShape2(lineShape, myLengthRatio, myWidthRatio);
(In the default LinePointer is {-5, -50, 5, -50, 5, 1000, -5, 1000}, in which the y-
coordinates of the bottom edge is at -50 instead of 0, that's why it goes through the origin
to the other side.)
Hope this can help.
Regards
Peter Kwan |