Skip to content
Last updated

API / geotoolkit / platforms / IPatternContext / IPatternContext

Class: IPatternContext

platforms.IPatternContext.IPatternContext

Define an interface for context which can create IPattern

Interface

Table of contents

Constructors
  • [new IPatternContext()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.platforms.ipatterncontext.ipatterncontext.md#new ipatterncontext())
Methods

Contents

Constructors

new IPatternContext()

• new IPatternContext()

Methods

createPattern

▸ Abstract createPattern(image, repetition, foregroundColor?): any

Creates a pattern using the specified image and repetition.

Parameters

Name Type Description
imageIBaseImage | CanvasImageSourceAn image to be used as the pattern's image.
repetitionstringA string indicating how to repeat the pattern's image.
Optional foregroundColorstringforeground color of pattern

Returns

any

IPattern