IC Imaging Control C++

MemBufferCollection::create Method

MemBufferCollection::create Method

This factory function creates a MemBufferCollection for use with the FrameHandlerSink or the Grabber.
Syntax:
static tMemBufferCollectionPtr create( const FrameTypeInfo& frame_type, DWORD count );
static tMemBufferCollectionPtr create( const FrameTypeInfo& frame_type, DWORD count, BYTE* buffers[] );
static tMemBufferCollectionPtr create( tColorformatEnum colorformat, SIZE dim, DWORD count );
static tMemBufferCollectionPtr create( tColorformatEnum colorformat, SIZE dim, DWORD count, BYTE* buffers[] );
Parameter Description
frame_type

A FrameTypeInfo structure, describing the frame type of the new MemBufferCollection.

count

The number of buffers to be created.

buffers

Array of user-specified image data pointers. These will be used by the MemBuffers for the image data. The array must contain count pointers, which must not be 0.

colorformat

The colorformat of the MemBuffers. Must be a valid colorformat.

dim

The dimensions of the MemBuffers created.

Return value:

This function returns 0, if one of the parameters is not valid, otherwise a MemBufferCollection instance.

Information:

Introduced in version 3.0

See also: MemBufferCollection, FrameHandlerSink, Grabber

<< MemBufferCollection

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us