ImageEn, unit imageenproc

IEAddNewFilter


Declaration

function IEAddNewFilter( const filter: TGraphFilter ; const name: String): Integer;


Description

Creates a new public filter (3x3 convolution matrix). You can apply filters to an image using ApplyFilter or the Image Processing Dialog.


Example

Const
  Myfilter: TgraphFilter =
   (Values: ((-1, 0, 1),
             (-1, 1, 1),
             (-1, 0, 1));
    Divisor: 1);
..
IEAddNewFilter( MyFilter, 'My Filter');
..
ImageEnView1.Proc.DoPreviews();  // This filter will be displayed on the "User Filters" tab