Table of Contents

Class GLStretchVideoEffect

Namespace
VisioForge.Core.Types.X.OpenGL
Assembly
VisioForge.Core.dll

Represents a stretch geometric distortion effect that elongates the video content from center to edges.

public class GLStretchVideoEffect : GLBaseVideoEffect

Inheritance

Inherited Members

Remarks

SDK Availability: Media Blocks SDK

Platforms: Windows, Linux, macOS, Android, iOS (requires OpenGL/OpenGL ES support)

Rendering Backend: OpenGL-accelerated

This effect applies a radial stretching distortion that elongates pixels outward from the center toward the edges of the frame. The effect creates a sense of motion or speed by stretching content radially, similar to motion blur effects in action photography or the "speed lines" seen in comics. The distortion is minimal at the center and increases progressively toward the frame edges.

The stretch effect is commonly used for:

  • Speed/Motion Effects: Simulating high-speed motion, acceleration, or warp speed
  • Impact Moments: Emphasizing dramatic action moments or impacts
  • Transitions: Dynamic transition effects suggesting forward motion
  • Comic Book Style: Creating stylized "speed lines" or motion emphasis
  • Focus Effects: Drawing attention to center elements while stretching background
  • Time Manipulation: Suggesting time dilation or relativistic effects

This is an OpenGL-accelerated geometric distortion effect using GPU-based radial expansion. The effect calculates directional stretching based on angle and distance from center, creating smooth radial elongation patterns.

Performance: Real-time capable with GPU acceleration. Highly efficient shader-based implementation with minimal performance impact. Suitable for live video processing and high frame rates.

Technical Details: Uses radial vector calculations to displace pixels along rays emanating from the center point. The displacement magnitude increases with distance from center, creating progressive stretching. The effect maintains aspect ratio while applying directional distortion.

Related Effects: See also VisioForge.Core.Types.X.OpenGL.GLBulgeVideoEffect for spherical expansion, VisioForge.Core.Types.X.OpenGL.GLSqueezeVideoEffect for inward compression, and VisioForge.Core.Types.X.OpenGL.GLTwirlVideoEffect for rotational distortion.

Constructors

GLStretchVideoEffect()

Initializes a new instance of the VisioForge.Core.Types.X.OpenGL.GLStretchVideoEffect class.

public GLStretchVideoEffect()

Remarks

Creates a stretch effect using the OpenGL "stretch" shader. The effect applies radial elongation from center to edges, with distortion intensity typically controlled through element properties.