ImageEn, unit imageenproc |
|
IESoftShadowSize
Declaration
function IESoftShadowSize(Radius: Double; OffsetX: Integer; OffsetY: Integer) : Integer;
Description
If you call
AddSoftShadow with
AdaptSize enabled then the dimensions of your image will be enlarged so the content does not change to fit the shadow.
This function returns the number of pixels that will be added in height and width by calling
AddSoftShadow.
Note: Regardless of your values for OffsetX/OffsetY AddSoftShadow always increases the width and height by the same value
Var
iSoftShadowSize: Integer;
Begin
iSoftShadowSize := IESoftShadowSize(ImageEnView1.Proc.SoftShadow.Radius, ImageEnView1.Proc.SoftShadow.OffsetX, ImageEnView1.Proc.SoftShadow.OffsetY);
ShowMessage(Format('Adding a soft shadow will enlarge the image to %d x %d',
[ImageEnView1.IEBitmap.Width + iShadowSize,
ImageEnView1.IEBitmap.Height + iShadowSize]);
End;