A MemBuffer represents a single buffer in a MemBufferCollection (organized as a ring buffer).
It is possible to lock a buffer, so that the buffer cannot be overwritten by the grabber. If the grabber tries to overwrite a locked buffer, it sets the WasLockedFlag and tries to write to the next buffer. If all buffers are locked, the grabber does not copy any frames and waits until an unlocked buffer is available.
Constructs a new MemBuffer by copying all data of the specified buffer.
This method sets the lock count to 0. This unlocks the MemBuffer completely.
This method returns a pointer to a BitmapInfoHeader structure that describes the image data contained in this buffer.
Returns the number of bits that represent a single pixel.
Returns the size of the MemBuffer in bytes.
This method returns a reference to the MemBufferCollection that contains this buffer.
Returns the index of this buffer in the containing MemBufferCollection.
Returns the color format of this buffer.
returns an object that describes the pixel depth, pixel organization and the extent of the image data stored in the buffer.
Returns the width and height of the image data stored in this buffer.
Returns true, if the buffer was locked when the grabber tried to write data to it.
This method returns true, if the buffer is locked.
This method increments the lock count of this buffer by 1, so that the grabber cannot overwrite the data in this buffer.
Writes the buffer to disk as a .BMP file.
This method decrements the lock count by 1.
A pointer to a BITMAPINFOHEADER structure.
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.