Declaration
procedure scaleAdd(scale: double; rhs: TIEVisionImage; dest: TIEVisionImage); safecall;
Description
Calculate the sum of a scaled image and another image.
Parameter | Description |
scale | Scale factor for left-hand side image (this) |
rhs | Right-hand side image |
dest | Container for resulting image |
Note:
◼The source images must be the same size and color depth
◼You should allocate the destination image to the same size as the source images
ImageEnView1.IO.LoadFromFile( 'D:\im.jpg' );
ImageEnView2.IO.LoadFromFile( 'D:\im2.jpg' );
// Allocate destination image
DestIEViewer1.IEBitmap.Allocate( ImageEnView1.IEBitmap.Width, ImageEnView1.IEBitmap.Height );
ImageEnView1.IEBitmap.GetIEVisionImage().scaleAdd( 2.0, ImageEnView2.IEBitmap.GetIEVisionImage(), DestIEViewer1.IEBitmap.GetIEVisionImage() );
DestIEViewer1.Update();