ImageEn, unit imageenproc

TImageEnProc.ApplyFilterPreset

TImageEnProc.ApplyFilterPreset


Declaration

procedure ApplyFilterPreset(filter: TIEFilterPresets);


Description

Apply a preset filter to the current image.

filter can be one of the following constants:
fpNone
fpBlur
fpEdge
fpEmboss
fpHighPass1
fpHighPass2
fpHighPass3
fpLowPass1
fpLowPass2


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Examples

ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

// Apply a Blur filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpBlur );

  

// Apply an Edge filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpEdge );

  

// Apply an Emboss filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpEmboss );

  

// Apply a High Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpHighPass1 );

  

// Apply a High Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpHighPass2 );

  

// Apply a High Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpHighPass3 );

  

// Apply a Low Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpLowPass1 );

  

// Apply a Low Pass filter to the image
ImageEnView1.Proc.ApplyFilterPreset( fpLowPass2 );