Interfacing Third-Party Images Code Snippet

This code snippet shows how to link an eVision image to an externally allocated buffer.

C++

#include <eVision/Easy/EImageBW8.h>
using namespace eVision;
// Images constructor
EImageBW8 srcImage;
// Size of the third-party image
int sizeX = 100;
int sizeY = 100;
int rowPitch = 120;
//Pointer to the third-party image buffer
EBW8* imgPtr(nullptr);
// ...
// Link the eVision image to the third-party image
// Assuming the corresponding buffer is aligned on 4 bytes
srcImage.UseExternalBuffer(sizeX, sizeY, imgPtr, rowPitch);

C#

Warning

This snippet is not available in this language.

Python

Warning

This snippet is not available in this language.