ImageEn, unit imageenproc

TImageEnProc.Merge

TImageEnProc.Merge

Declaration

procedure Merge(SrcBitmap: TIEBitmap; pcf: Integer = 50); overload;
procedure Merge(SrcBitmap: TBitmap; pcf: Integer); overload;
procedure Merge(SrcBitmap: TIEBitmap; Mask: TIEBitmap); overload;

Description

Merge the current image with the specified bitmap.
Parameter Description
SrcBitmap Bitmap to merge with the current image (TBitmap images must be pf1bit, pf8bit, pf24bit or pf32bit)
pcf Percentage of current image (100 = only the current image, 0 = only SrcBitmap)
Mask Gray scale (ie8g) mask, which indicates how merge source with the background image (255 = full SrcBitmap, 0 = full background)

Note: If the source bitmaps are not ie24RGB, they will be converted

Demos

Demo  Demos\ImageEditing\CompleteEditor\PhotoEn.dpr
Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Examples

Also see: Automated Samples
// Merge 50% of ImageEnView2 with ImageEnView1
ImageEnView1.Proc.Merge( ImageEnView2.IEBitmap, 50 );


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

  

// Merge image with a horizontally flipped version of itself
bmp.Assign( ienOriginal.IEBitmap );
bmp.Flip( fdHorizontal );
ImageEnView1.Proc.Merge( bmp, 50 );