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 IC Imaging Control 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.

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.

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.

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

<< Classes

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, TX Text Control Blog and Forums.