ImageEn, unit iexLayers

TIELayer.Width

TIELayer.Width


Declaration


property Width: Integer;


Description


Specifies the layer size (i.e. display width when zoom is 100%).


Example


// Make all selected layers 1/3 size
ImageEnView1.LockUpdate;
for i := 0 to ImageEnView1.LayersCount - 1 do
  if ImageEnView1.Layers[ I ].Selected then
  begin
    ImageEnView1.Layers[ I ].Width := ImageEnView1.Layers[ I ].Width div 3;
    ImageEnView1.Layers[ I ].Height := ImageEnView1.Layers[ I ].Height div 3;
  end;
ImageEnView1.LayersFixSizes( LYR_SELECTED_LAYERS );
ImageEnView1.UnlockUpdate;


See Also


- PosX
- PosY
- Height
- LayerRect
- ClientAreaBox
- LayersSizeAll
- SizeToText
- SizeToFit