KnockoutBackgroundOptions

遮色片(遮色片)所選影像的背景。 此資料類型可讓您以主體影像外部的透明度,在其他圖層中覆蓋它們。

此資料類型是選用的,預設為關閉。

KnockoutBackgroundOptions=[corner, tolerance, fill]

參數

重要

如果您正在設定 KnockoutBackgroundOptions 在Adobe Experience Manager中,請改用下列參數:

  • kbCorner
  • kbTolerance
  • kbFillMethod

例如︰kbCorner=UpperLeft&kbTolerance=0.2&kbFillMethod=MatchPixel

名稱 類型 說明
xsd:string 選擇要使用的角。 接受這些值:
  • 左上
  • 左下
  • 右上
  • 右下
容差 xsd:double 可選設定,根據透明度從影像邊緣中移除空白字元。 接受0.0到1.0的值範圍。指定:
  • 0以完全匹配顏色。
  • 1以啟用最多的顏色差異。
fillMethod xsd:string

在指定的位置中控制像素透明度, 變數。 此 fillMethod 接受這些值:

  • FloodFill:使指定角中的所有像素都透明。
  • MatchPixel:無論位置為何,所有相符的像素都會變成透明。

範例

<complexType name="KnockoutBackgroundOptions">
        <sequence>
            <!-- corner one of UpperLeft, BottomLeft, UpperRight, BottomRight -->
            <element name="corner" type="xsd:string" minOccurs="1"/>
            <!-- Tolerance real value between 0.0 and 1.0 -->
            <element name="tolerance" type="xsd:double" minOccurs="0"/>
            <!-- one of FloodFill or MatchPixel is required -->
            <element name="fillMethod" type="xsd:string" minOccurs="1"/>
        </sequence>
    </complexType>

使用者

KnockoutBackgroundOptions 類型的使用者:

本頁內容