IC Imaging Control .NET

FrameType.FrameType Method

FrameType.FrameType Method

Creates a new FrameType.
Syntax:
[C#]
public FrameType(); public FrameType( String fourCC ); public FrameType( System.Guid subtype ); public FrameType( System.Guid subtype, int width, int height ); public FrameType( System.Guid subtype, int width, int height, int buffersize ); public FrameType( System.Guid subtype, System.Drawing.Size size ); public FrameType( System.Guid subtype, System.Drawing.Size size, int buffersize );
Parameter Description
fourCC

A four char string that describes the color format of the frame. Sample strings are "Y800","UYVY", "RGB24","RGB32" or "V210". Any FourCC can be passed to this parameter. If a FourCC is passed to the fourCC parameter is used, then valid colorspace transform filters must exist on the computer. Otherwise an exception will be thrown.

(Annotation: Even if "RGB24" and "RGB32" are no FourCC codes, they are accepted as parameter, because they are very common. They will create an RGB24, respective and RGB32 sink.)

subtype

A GUID describing the color format of the frame. See MediaSubtypes for commonly used constants for this parameter. Omitting this parameter or setting its value to System.Guid.Empty creates a FrameType that is compatible to any other frame type regarding the color format.

width

Width of the frame. Omitting this parameter or setting its value to 0 creates a FrameType that is compatible to any other frame type regarding the width.

height

Height of the frame. Omitting this parameter or setting its value to 0 creates a FrameType that is compatible to any other frame type regarding the height.

size

Specifies the Width and Height via System.Drawing.Size.

buffersize

Number of bytes required to store a frame. Omitting this parameter or setting its value to 0 creates a FrameType that is compatible to any other frame type regarding the buffer size.

Remarks:

The use of the parameters width, height and buffersize is suitable for frame filters, that change the size of the frames.

See also : FrameTypes, MediaSubtypes, ImageBuffer

<< FrameHandlerSink.FrameType

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