ImageEn, unit hyiedefs

TIEVSoftShadow.OffsetX

TIEVSoftShadow.OffsetX


Declaration

property OffsetX: Integer;


Description

The horizontal relative position of the shadow (negative values position the shadow to the right).

Alternatively, you can set offsets by angle and distance using SetByAngleAndDist

Default: 3


Example

// Add a soft shadow to the current layer angled toward the bottom-right
ImageEnView1.CurrentLayer.SoftShadow.OffsetX := 5;
ImageEnView1.CurrentLayer.SoftShadow.OffsetY := 5;
ImageEnView1.CurrentLayer.SoftShadow.Enabled := True;
ImageEnView1.Update;