ImageEn, unit ievision

TIEVisionImage.copyFrom

TIEVisionImage.copyFrom


Declaration

procedure copyFrom(srcChannelFormat: TIEVisionChannelFormat; srcChannels: int32_t; srcRowLen: int32_t; srcData: pointer); safecall;


Description

Copies image from memory buffer.

Parameter Description
srcChannelFormat Source image channel format.
srcChannels Source image number of channels.
srcRowLen Source image row length.
srcData Source image buffer.


Example

// copies RGB image from ImageEnView1 (TImageEnView)
image1 := IEVisionLib.createImage();
image1.copyFrom(ievUINT8, 3, ImageEnView1.IEBitmap.RowLen, ImageEnView1.IEBitmap.Scanline[ImageEnView1.IEBitmap.Height-1]);
image1.flip(ievY_AXIS);