ImageEn, unit hyiedefs

TIEVSoftShadow.SetByAngleAndDist

TIEVSoftShadow.SetByAngleAndDist


Declaration

procedure SetByAngleAndDist(Angle: Double; Distance: Double);


Description

Provides an alternative method of setting OffsetX and OffsetY by specifying the offset angle and distance.
In ImageEn, angles start at 3pm on the clock and rotate counter-clockwise, e.g. 0°=3pm, 90°=12pm, 180°=9pm, 270°=6pm

Get the current angle and distance using GetAngleAndDist


Example

// Add a soft shadow to the current layer angled toward the bottom-right
ImageEnView1.CurrentLayer.SoftShadow.SetByAngleAndDist( -45, 5 );
ImageEnView1.CurrentLayer.SoftShadow.Enabled := True;
ImageEnView1.Update;