Hi
Continuing my ImageEN education/experiments.
The code below should draw a line the height of the control, centered.
But I only get a line 95px high.
I can set the layer height to the control height. But, then if I make the line point half height way it still has the full height of the control.
Is there a setting I'm missing - I cant seem to make sense of this.
I would like to create a polyline of 4 points so that I can move each of the points independently.
Thanks again
Alan
var
PolyLayer: TIEPolylineLayer;
begin
ImageEnView1.LayersAdd(ielkPolyline);
PolyLayer := TIEPolylineLayer(ImageEnView1.CurrentLayer);
PolyLayer.ClearAllPoints;
PolyLayer.PolylineClosed:= False;
PolyLayer.BorderWidth:= 4;
PolyLayer.BorderColor:= clGreen;
PolyLayer.AddPoint(1,0);
PolyLayer.AddPoint(1,ImageEnView1.ClientHeight);
PolyLayer.PosX:= Round(ImageEnView1.ClientWidth/2);
PolyLayer.Posy:=0;
PolyLayer.Update;
end;