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