Search Results for

    Show / Hide Table of Contents

    Video

    The Video class is used when you want to have a video conversion for the media. Normally this is only possible for media that are video to start with.

    Resize

    To resize the media, use the Resize method.

            var client = ClientFactory.GetSdkClient();
            var video = client.Load<Video>(1223)
    .Resize(120, 120, ResizeMode.ScaleToFill).SingleOrDefault();
    

    The method takes three arguments:

    width: The width of the resized media

    height (optional): The height of the resized media

    resizeMode (optional): In which way to resize the media. There are two alternatives:

    ScaleToFit - Scales the media to fit inside the specified width and height, aspect ratio is kept. This is the default.

    ScaleToFill - Scales the media to fill the specified width and height, aspect ratio is kept by cropping if necessary.

    Note! ScaleToFill requires both width and height to be set.

    In This Article
    Back to top (c) Meriworks 2002-2022