ImageEn, unit imageenproc




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


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 PixelFormat is not ie24RGB, it will be converted


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


// Merge 50% of ImageEn2 with ImageEn1
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 );