ImageEn, unit imageenproc

TImageEnProc.MotionBlur

TImageEnProc.MotionBlur


Declaration

procedure MotionBlur(Angle: Double; Radius: Integer = 8; Sigma: Integer = 7);


Description

Apply a motion blur effect.



Parameter Description
angle Angle in degrees (0 to 360)
radius Radius of Gaussian kernel in pixels (> 0)
sigma Standard deviation of Gaussian kernel in pixels (> 0)

Note:
 Also available as a RetouchTool by setting MouseInteractGeneral to [miRetouchTool] and RetouchMode to iermMotionBlur
 If the image PixelFormat is not ie24RGB, it will be converted


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

// Apply a diagonal effect of motion to image
ImageEnView1.Proc.MotionBlur( 45 );