Pattern

Description

The Pattern element defines a pattern used to fill an area.

Context

Table 1 lists the elements that can contain, or be contained by, a Pattern element.

Table 1. Context
Contained by Element Contains

Interior or Defs

Pattern

Bitmap

Attributes

Table 2 lists the attributes of a Pattern element.

Table 2. Attributes
Attribute Description

id

A unique identifier for the element.

Note: This attribute is required.

name

A descriptive name for the element.

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>