I am trying to see if i can convert my vector objects to the new layer kind. Does the code is supposed to work only with imageenview and not imageenvect ?
I created a blank new project and added that
procedure TForm1.FormShow(Sender: TObject);
begin
// Draw a triangle polygon
With TIEPolylineLayer( ImageEnVect1.CurrentLayer ) do
begin
ClearAllPoints();
AddPoint( 500, 0 );
AddPoint( 1000, 1000 );
AddPoint( 0, 1000 );
PolylineClosed := True;
end;
ImageEnVect1.Update();
end;
That creates a crash when closing and i do not see anything drawn.
Best