Interior

Description

The Interior element defines a style for a filled area.

Context

Table 1 lists the elements that can contain, or be contained by, an Interior element.

Table 1. Context
Contained by Element Contains

NamedStyle or AreaStyle

Interior

Defs or Pattern

Attributes

Table 2 lists the attributes of an Interior element.

Table 2. Attributes
Attribute Description

id

A unique identifier for the element.

name

A descriptive name for the element.

fill

The fill color or pattern. The value can be one of five different forms of defining a color, or the id of an underlying Pattern element, or the special value none to indicate no value.

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

The fill attribute is optional. The default value is black.

fill-opacity

A floating-point value from 0 to 1 specifying the opacity of the fill.

A value of 0 means that the fill is totally transparent. A value of 1 means that the fill is totally opaque. A value of 0.5 means that the fill is 50% translucent.

The fill-opacity setting is multiplicative to any opacity setting in an underlying ColorAdjustment element. For example, if the Interior element has a fill-opacity setting of 0.5, and an underlying ColorAdjustment element has an opacity setting of 0.4, then the final opacity would be 0.5 × 0.4, or 0.2.

The fill-opacity attribute is optional. The default value is 1.

Example

This example specifies a solid fill pattern.

<?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>