Class ScaleToFitTransformation

  • All Implemented Interfaces:
    GlEffect, GlMatrixTransformation, MatrixTransformation, Effect

    public final class ScaleToFitTransformation
    extends Object
    implements MatrixTransformation
    Specifies a simple rotation and/or scale to apply in the vertex shader.

    All input frames' pixels will be preserved and copied into an output frame, potentially changing the width and height of the frame by scaling dimensions to fit.

    The background color of the output frame will be black, with alpha = 0 if applicable.