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.
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.
Introduced in version 3.5
Creates a System.Drawing.Bitmap object and copies the image contents of the IFrame parameter into it.
Creates a System.Drawing.Bitmap object which internally points to the same memory as the IFrame.
Saves the contents of the IFrame to a bitmap file on disk.
Saves the contents of the IFrame as a TIFF file.
Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, video converters and embedded vision components for factory automation, quality assurance, medicine, science, security and a variety of other markets.
Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE, MIPI interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.