Table of Contents

VideoFrameReader.SetFrameSize Method

Definition

Namespace
GleamTech.VideoUltimate
Assembly
GleamTech.VideoUltimate.dll

SetFrameSize(int, int)

Set the frame size to be used for GleamTech.Drawing.Image instances returned by GetFrame(). This method can be called if a different frame size is required than the original video frame size.

public void SetFrameSize(int width, int height)

Parameters

width int

The width of the frame. If value is 0, width will be automatically calculated to preserve aspect ratio.

height int

The height of the frame. If value is 0, height will be automatically calculated to preserve aspect ratio.

SetFrameSize(int)

Set the frame size to be used for GleamTech.Drawing.Image instances returned by GetFrame(). This method can be called if a different frame size is required than the original video frame size.

public void SetFrameSize(int maxSize)

Parameters

maxSize int

The maximum width or height of the frame, aspect ratio is preserved. If width is bigger than height, than the value would be maximum width else it would be maximum height. If value is 0, original width and height will be used.