FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Constructor VideoResizeOptions

    VideoResizeOptions(VideoResizeMode, int, int, bool)

    Initializes a new instance of the VideoResizeOptions class with the specified mode and target size.

    Note: restrictions of H.264 and HEVC still apply when rescaling videos, such as requiring even dimensions with 4:2:0 subsampling, being internally padded up to block sizes, etc.; if the size you specify is too small for the video to be possible, an exception will be thrown during processing.

    Declaration
    public VideoResizeOptions(VideoResizeMode mode, int width, int height, bool matchSourceOrientation = false)
    Parameters
    Type Name Description
    VideoResizeMode mode

    The resize mode to apply.

    int width

    The target width in pixels. Must be greater than zero.

    int height

    The target height in pixels. Must be greater than zero.

    bool matchSourceOrientation

    If true, the target width and height are swapped prior to resizing when needed so that the longest target dimension matches the longest source dimension (i.e. portrait targets are applied to portrait sources and landscape targets to landscape sources). Default is false.

    © Singulink. All rights reserved.