IC Imaging Control .NET

ImageBuffer

ImageBuffer

An ImageBuffer object contains the image data of one frame. IC Imaging Control's internal ring buffer consists of ImageBuffers.

Example

This example illustrates how to obtain the first available image buffer:

[VB.NET]
Dim bmp As Bitmap bmp = IcImagingControl1.ImageActiveBuffer.Bitmap bmp.Save("C:\membuf.png", System.Drawing.Imaging.ImageFormat.Png)
[C#]
Bitmap bmp = ICImagingControl1.ImageActiveBuffer.Bitmap; bmp.Save("C:\membuf.png", System.Drawing.Imaging.ImageFormat.Png);

Information

Namespace: TIS.Imaging
Introduced in version 1.x

Properties

Property Description
Bitmap

Returns a bitmap object representing the image data of this ImageBuffer.

BitsPerPixel

Retrieves the bits per pixel in this ImageBuffer.

BytesPerLine

Returns the number of Bytes in each line of this ImageBuffer.

FrameType

Returns a FrameType object describing the image format of this ImageBuffer.

Index

Returns the index of this buffer in the ring buffer.

Item

Gets or sets bytes in the image data of this ImageBuffer

Lines

Returns the number of lines in this ImageBuffer.

Locked

Returns True if the ImageBuffer is locked.

PixelPerLine

Returns the number of pixels in each line of this ImageBuffer.

SampleEndTime

Returns the reference end time of the sample in the image buffer.

SampleStartTime

Returns the reference start time of the sample in the image buffer.

WasLockedFlag

Returns the WasLockedFlag.

Methods

Method Description
ForceUnlock

Reduces the lock count immediately to 0. Therefore, an image buffer is unlocked, enabling IC Imaging Control to copy an image to it.

GetByteData

Gets the Bytedata at an specific index of an imagebuffer.

GetImageData

Returns a pointer to the image data.

Lock

Locks the buffer

SaveAsBitmap

Saves the contents of the buffer to a bitmap file on disk.

SaveAsJpeg

Saves the contents of the buffer to a JPEG compressed file to disk.

SaveAsTiff

Saves the contents of the image buffer as a TIFF file.

SaveImage

Saves the contents of the buffer to disk.

SetByteData

Sets the Bytedata at an specific index of an imagebuffer.

Unlock

Unlocks the buffer

<< Classes

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