ImageEn, unit imageenproc
TImageEnProc.AddInnerShadow
TImageEnProc
.AddInnerShadow
Declaration
procedure AddInnerShadow(Radius: Double = 4; OffsetX: Integer = 0; OffsetY: Integer = 0; ShadowColor: TColor = clBlack);
Description
Add a shadow to the inner border of the image.
Set OffsetX and OffsetY to 0 to apply the shadow from all sides.
Note: For an outer glow, use:
AddSoftShadow
Demo
Demos\ImageEditing\EveryMethod\EveryMethod.dpr
Examples
ImageEnView1.Proc.AddInnerShadow( 10, 0, 0, clRed );
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
// Add a red shadow to the inner border of the image
ImageEnView1.Proc.AddInnerShadow( 10, 0, 0, clRed );