ImageEn, unit imageenproc |
|
Effects Methods Testing
Testing of Effects Methods
These images were generated using the demo:
\Demos\InputOutput\EveryMethod\EveryMethod.dpr
All Test Results-
Analysis Methods-
Color Adjustment Methods-
Color Depth Methods-
Alpha and Painting Methods- Effects Methods-
Geometric Methods-
Filter Methods-
Smoothing Methods-
Other Methods
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

AddInnerShadow
// Add a red shadow to the inner border of the image
ImageEnView1.Proc.AddInnerShadow( 10, 0, 0, clRed );

AddSoftShadow
// Add a shadow to the bottom-right of the image
ImageEnView1.Proc.AddSoftShadow( 5, 4, iespBottomRight );

// Add a yellow glow to the image
ImageEnView1.Proc.AddSoftShadow( 5, 0, 0, True, clYellow );

BumpMapping
// Apply a bump mapping effect to the image
ImageEnView1.Proc.BumpMapping( ImageEnView1.IEBitmap.Width div 2,
ImageEnView1.IEBitmap.Height div 2,
50, 50,
10, CreateRGB(255, 255, 255) );

Lens
// Apply a lens effect to the center of the image
ImageEnView1.Proc.Lens( ImageEnView1.IEBitmap.Width div 2,
ImageEnView1.IEBitmap.Height div 2,
ImageEnView1.IEBitmap.Width,
ImageEnView1.IEBitmap.Height,
6 );

Pixelize
// Apply pixelation to the selection (with blocks of 2% size)
ImageEnView1.Proc.Pixelize();

PencilSketch
// Transform image into a monochrome pencil sketch
ImageEnView1.Proc.PencilSketch( True );

// Transform image into a color pencil sketch
ImageEnView1.Proc.PencilSketch( False );

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

Wave
// Apply a wave effect to the image
ImageEnView1.Proc.Wave( 10, 10, 0, false );

// Apply a reflective wave effect to the image
ImageEnView1.Proc.Wave( 10, 10, 0, True );

See Also
-
Analysis Methods-
Color Adjustment Methods-
Color Depth Methods-
Alpha and Painting Methods- Effects Methods-
Geometric Methods-
Filter Methods-
Smoothing Methods-
Other Methods