ImageEn, unit imageenproc

TImageEnProc.ApplyFilter

TImageEnProc.ApplyFilter


Declaration

procedure ApplyFilter(filter: TGraphFilter);


Description

Apply a 3x3 filter to the current image (or the selected region).

Note:
A UI for this is available to your users in the Image Processing dialog
If the image PixelFormat is not ie24RGB, it will be converted
Use ApplyFilterPreset to apply common filters


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

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

  

// Apply a sharpening filter
Const
  Sharpening_Filter: TGraphFilter = ( Values: ((  0, -1,  0 ),
                                               ( -1,  5, -1 ),
                                               (  0, -1,  0 ));
                                      Divisor: 1 );
Begin
  ImageEnView1.Proc.ApplyFilter( Sharpening_Filter );
End;

  


See Also

ApplyFilterPreset
filter2D


Loading contents...