| ImageEn, unit imageenproc |
|
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
◼If the image
PixelFormat is not ie24RGB, it will be
converted
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 );
