IC Imaging Control .NET

FrameExtensions

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 bitmap = buffer.CreateBitmapWrap();

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

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