TIEVisionImage.convertScale
Declaration
function convertScale(dest: TIEVisionImage; scale: double = 1.0; shift: double = 0.0): TIEVisionImage; overload; safecall;
function convertScale(channelFormat: TIEVisionChannelFormat; scale: double = 1.0; shift: double = 0.0): TIEVisionImage; overload; safecall;
Description
Convert an image to another datatype with optional scaling.
First overload stores the resulting image into destination object. It returns the destination image.
Second overload updates the current image. It returns itself.
Parameter | Description |
dest | Container used to store results |
scale | Scale factor (1.0 = no scale) |
shift | Delta added to the scaled values |
channelFormat | Used to change the channel format |
Note: You should allocate the destination image to the same size as the source image
ImageEnView1.IO.LoadFromFile( 'D:\im.jpg' );
DestIEViewer1.IEBitmap.Allocate( ImageEnView1.IEBitmap.Width, ImageEnView1.IEBitmap.Height );
ImageEnView1.IEBitmap.GetIEVisionImage().convertScale( DestIEViewer1.IEBitmap.GetIEVisionImage(), 1.1, 1.0 );
DestIEViewer1.Update();