FrameExtensions

FrameExtensions is a collection of extension methods that provide common operations on IFrame objects, such as saving the image data or converting the image data into a System.Drawing.Bitmap object.

Since the members of FrameExtensions are extension methods, they can be called as if they are member functions of their first argument.

[C#]
using namespace TIS.Imaging; // ... var buffer = sink.SnapSingle( TimeSpan.FromSeconds(2) ); var bitmap0 = buffer.CreateBitmapWrap(); // instead of var bitmap1 = TIS.Imaging.FrameExtensions.CreateBitmapWrap( buffer );

The using namespace TIS.Imaging; directive is required for this to work.

Information

    Namespace: TIS.Imaging
    Introduced in version 3.5

Methods

Method Description
CreateBitmapCopy

Creates a System.Drawing.Bitmap object and copies the image contents of the IFrame parameter into it.

CreateBitmapWrap

Creates a System.Drawing.Bitmap object which internally points to the same memory as the IFrame.

SaveAsBitmap

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

SaveAsJpeg

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

SaveAsTiff

Saves the contents of the IFrame as a TIFF file.

<< Classes