GoJS API
/ to search
    Preparing search index...

    Enumeration ImageStretch

    This enumeration specifies possible values for Picture.imageStretch.

    since

    3.0

    Index

    Enumeration Members

    Enumeration Members

    Fill: 2

    Scale the image in both directions so as to fit exactly in the given bounds; there is no clipping, but the aspect ratio may change, causing the image to appear stretched.

    None: 0

    Do not scale the image; there may be clipping in one or both directions if the available dimensions are too small.

    Uniform: 6

    Scale the image equally in both directions to fit the larger side of the image bounds.

    UniformToFill: 7

    Scale the image equally in both directions to fit the arranged (actual) bounds. There may be clipping in one dimension.