ICanvasRenderingContext2DCreatePattern Method (HTMLCanvasElement, String)
Creates a pattern using the specified image (a CanvasImageSource). It repeats the source in the directions specified by the repetition argument.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.3
Syntax
ICanvasPattern CreatePattern(
	HTMLCanvasElement image,
	string repetition
)

Parameters

image
Type: Aspose.HtmlHTMLCanvasElement
A HTMLCanvasElement to be used as the image to repeat
repetition
Type: SystemString
A string indicating how to repeat the image.

Return Value

Type: ICanvasPattern
An opaque object describing a pattern.
See Also