ImageEn, unit imageenproc

TImageEnProc.Reflection

TImageEnProc.Reflection

Declaration

procedure Reflection(minAlpha: Integer = 0; maxAlpha: Integer = 200; percentage: Integer = 100);

Description

Extend the image vertically and simulate a reflection of the image (like reflection of "coverflow" presentations).
Parameter Description
minAlpha Minimum alpha value (0=fully transparent, 255=fully opaque)
maxAlpha Maximum alpha value (0=fully transparent, 255=fully opaque)
percentage Effect percentage (0=no effect, 100=maximum effect)

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

Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Example

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

  

// Simulate a reflection of the image
ImageEnView1.Proc.Reflection();