Class Crop

    • Constructor Detail

      • Crop

        public Crop​(float left,
                    float right,
                    float bottom,
                    float top)
        Crops a smaller (or larger) frame, per normalized device coordinates (NDC), where the input frame corresponds to the square ranging from -1 to 1 on the x and y axes.

        left and bottom default to -1, and right and top default to 1, which corresponds to not applying any crop. To crop to a smaller subset of the input frame, use values between -1 and 1. To crop to a larger frame, use values below -1 and above 1.

        Parameters:
        left - The left edge of the output frame, in NDC. Must be less than right.
        right - The right edge of the output frame, in NDC. Must be greater than left.
        bottom - The bottom edge of the output frame, in NDC. Must be less than top.
        top - The top edge of the output frame, in NDC. Must be greater than bottom.