ImageEn, unit iexProcEffects |
|
TIEImageEffectsList.Apply
Declaration
procedure Apply();
Description
Permanently applies the
active effects to the image and
clears the list.
Note: Apply is only valid when the Effects Chain is attached to a TIEBitmap/TImageEnView
| Demos\ImageEditing\EffectsChain\EffectsChain.dpr |
| Demos\InputOutput\BatchConvert\BatchConvert.dpr |
// Load an image
ImageEnView1.IO.LoadFromFile( 'D:\image.jpg' );
// Enable the effects chain
ImageEnView1.IEBitmap.EffectsChain.Enabled := True;
// Prompt the user to specify a color adjustment
ImageEnView1.IEBitmap.EffectsChain.Add( ppeColorAdjustments );
// Add a horizontal flip
ImageEnView1.IEBitmap.EffectsChain.Add( peRotate ); // Rotation and flipping type
ImageEnView1.IEBitmap.EffectsChain.CurrentItem.Flip_Horz := True;
ImageEnView1.Update(); // Must call update after manually setting properties
// Permanently apply specified effects to the image (will clear the effects from the chain)
ImageEnView1.IEBitmap.EffectsChain.Apply();