Interior

説明

Interior 要素は、塗りつぶしエリアのスタイルを定義します。

コンテキスト

表 1 は、Interior 要素を含むことのできる要素と、これに含めることのできる要素を示します。

表 1. コンテキスト
これを含む要素 要素 が次の値を含む

NamedStyle または AreaStyle

Interior

Defs または Pattern

属性

表 2 は、Interior 要素の属性を示します。

表 2. 属性
属性 説明

id

要素の一意の識別子。

名前

要素を説明する名前。

fill

塗りつぶす色またはフィル パターン。この値には、色を定義する 5 種類の形式の 1 つ、使用する Pattern 要素の id、値なしを示す特殊な値 none のいずれかを指定できます。

例:
  • blue
  • #F80
  • #EE97A2
  • rgb(255,0,30)
  • rgb(21.5%, 90%, 3.1%)
  • (#id20)
  • none

fill 属性はオプションです。デフォルト値は black です。

fill-opacity

塗りつぶしの透過性を指定する 0 から 1 の浮動小数点数値。

値 0 は、塗りつぶしを完全に透明にすることを指定します。値 1 は、塗りつぶしを完全に不透明にすることを指定します。値 0.5 は、塗りつぶしを 50% 透明にすることを指定します。

fill-opacity 設定は、使用される ColorAdjustment 要素の opacity 設定と乗算されます。例えば、Interior 要素の fill-opacity 設定が 0.5 であり、使用される ColorAdjustment 要素の opacity 設定が 0.4 である場合、最終的な透明度は 0.5 × 0.4 で 0.2 になります。

fill-opacity 属性はオプションです。デフォルト値は 1 です。

この例は、無地のフィル パターンを指定します。



<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
    version="MXP_WorkSpace_1_5"
    xmlns="http://www.mapinfo.com/mxp">
    <Interior fill-opacity="1" fill="(#id7)">
        <Defs>
            <Pattern id="id7">
                <Bitmap uri="mapinfo:brush 2">
                    <ColorAdjustmentSet>
                        <ColorAdjustment
                            color-1="nonWhite"
                            color-2="rgb(224,255,176)"
                            opacity="1"/>
                        <ColorAdjustment
                            color-1="white"
                            color-2="white"
                            opacity="1"/>
                    </ColorAdjustmentSet>
                </Bitmap>
            </Pattern>
        </Defs>
    </Interior>
</NamedStyle>