FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Constructor ImageResizeOptions

    ImageResizeOptions(ImageResizeMode, int, int, bool)

    Initializes a new instance of the ImageResizeOptions class with the specified dimensions and resize mode.

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

    The resize mode to apply.

    int width

    The target width in pixels. Must be greater than or equal to 1.

    int height

    The target height in pixels. Must be greater than or equal to 1.

    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.