• Creates an image component for UI object. Crops the image to the specified size.

    Parameters

    • src: string

      Link to the image.

    • imageWidth: number

      Width of the image.

    • imageHeight: number

      Height of the image.

    • paddingLeft: number

      Size of padding on the left.

    • paddingRight: number

      Size of padding on the right.

    • paddingTop: number

      Size of padding on the top.

    • paddingBottom: number

      Size of padding on the bottom.

    Returns UIImageItem

    Created interface component.