EImageBW8::InitializeFromUnalignedBuffer
Initialize image from an unaligned buffer.
Namespace: Euresys::Open_eVision
[C++]
void InitializeFromUnalignedBuffer(
int width,
int height,
void* buffer,
int pitch
)
Parameters
width
Width of the image in the buffer.
height
Height of the image in the buffer.
buffer
Address of the buffer.
pitch
Pitch of the buffer (in bytes). If omitted, the method assumes there is no padding (the pitch is assumed be equal (width * sizeOfAPixel))
Remarks
The image will be initialized to fit the width and height passed as arguments. The contents of the buffer will then be copied into the image. The buffer contents must be compatible with the pixel type of the image.
EImageBW8.InitializeFromUnalignedBuffer
Initialize image from an unaligned buffer.
Namespace: Euresys.Open_eVision
[C#]
void InitializeFromUnalignedBuffer(
int width,
int height,
IntPtr buffer,
int pitch
)
Parameters
width
Width of the image in the buffer.
height
Height of the image in the buffer.
buffer
Address of the buffer.
pitch
Pitch of the buffer (in bytes). If omitted, the method assumes there is no padding (the pitch is assumed be equal (width * sizeOfAPixel))
Remarks
The image will be initialized to fit the width and height passed as arguments. The contents of the buffer will then be copied into the image. The buffer contents must be compatible with the pixel type of the image.