神岛 API 文档 - ArenaPro版
    Preparing search index...

    Enumeration ImageDisplayMode

    控制图像的显示方式

    Controls how the image is displayed

    Index

    Enumeration Members

    Enumeration Members

    Contain: 1

    等比铺满:等比缩放保证图片完整展示在外框内

    Contain: Scales the image proportionally to ensure it is fully visible within the container.

    Cover: 2

    等比截取:等比缩放图片使图片填满外框,超出部分将被裁剪(隐藏显示)

    Cover: Scales the image proportionally to fill the container, with any excess parts being cropped (hidden).

    Fill: 0

    铺满:(默认)适配元素外框长宽拉伸铺满展示,图片可能会变形

    Fill: (Default) Stretches the image to fill the container, the image may be distorted.

    None: 3

    无:按图片正常尺寸与外框中心对齐展示,不对图片进行任何缩放调整,但是超出元素框部分会被裁剪(隐藏显示)

    None: Displays the image at its original size, centered within the container. No scaling is applied, but parts outside the container will be cropped (hidden).