
An ImageBuffer object contains the image data of one frame. IC Imaging Control's internal ring buffer consists of ImageBuffers.
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);
Namespace: TIS.Imaging
Introduced in IC Imaging Control 1.x
| Property | Description | ||
| Bitmap | Returns a bitmap object representing the image data of this ImageBuffer. |
||
| BitsPerPixel | Retrieves the bits per pixel in this ImageBuffer. |
||
| FrameType | Returns a FrameType object describing the image format of this ImageBuffer. |
||
| 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. |
||
| 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. |
||
| 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. |
||
| SaveImage | Saves the contents of the buffer to disk. |
||
| Unlock | Unlocks the buffer |
||