ImageEn, unit iexLayers

TIELineLayer.SizeToFit

TIELineLayer.SizeToFit


Declaration


 procedure TIELineLayer.SizeToFit();


Description


Updates the size of the layer to fit the displayed angle.
This is useful if you have manually set the width/height of the layer.


Example


with ImageEnView1 do
begin
  LayersAdd( ielkLine );
  CurrentLayer.Rotate := 30;
  CurrentLayer.Width := 500;
  CurrentLayer.Height := 500;
  TIELineLayer( CurrentLayer ).SizeToFit();
  Update();
end;