ImageEn, unit iexLayers

TIELayer.PosY

TIELayer.PosY


Declaration

property PosY: Integer;


Description

Specifies the vertical position of the layer relative to the background image (layer 0).
PosYD provides a double version of PosY if you need more accuracy.

These constants are also supported:
Const Description
IELayer_Pos_Top Adjust PosY so layer is aligned to the top of the background layer
IELayer_Pos_VCenter Adjust PosY so layer is aligned to the vertical center of the background layer
IELayer_Pos_Bottom Adjust PosY so layer is aligned to the bottom of the background layer


Example

// Apply a "Paid" stamp to image
with ImageEnView1 do
begin
  LayersAdd( 'PAID', 42, clRed, 'Arial Black', [fsBold] );
  CurrentLayer.Rotate := 30;
  TIETextLayer( CurrentLayer ).SizeToText();
  CurrentLayer.PosX := IELayer_Pos_HCenter;
  CurrentLayer.PosY := IELayer_Pos_VCenter;
  LayersMergeAll();
end;


See Also

PosX
Width
Height
LayerRect
ClientAreaBox
LayersRepositionAll