ICanvasRenderingContext2D.CreatePattern
Contents
[
Hide
]CreatePattern(HTMLImageElement, String)
Creates a pattern using the specified image (a CanvasImageSource). It repeats the source in the directions specified by the repetition argument.
public ICanvasPattern CreatePattern(HTMLImageElement image, String repetition)
Parameter | Type | Description |
---|---|---|
image | HTMLImageElement | A HTMLImageElement to be used as the image to repeat |
repetition | String | A String indicating how to repeat the image. |
Return Value
An opaque object describing a pattern.
See Also
- interface ICanvasPattern
- class HTMLImageElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
CreatePattern(HTMLCanvasElement, String)
Creates a pattern using the specified image (a CanvasImageSource). It repeats the source in the directions specified by the repetition argument.
public ICanvasPattern CreatePattern(HTMLCanvasElement image, String repetition)
Parameter | Type | Description |
---|---|---|
image | HTMLCanvasElement | A HTMLCanvasElement to be used as the image to repeat |
repetition | String | A String indicating how to repeat the image. |
Return Value
An opaque object describing a pattern.
See Also
- interface ICanvasPattern
- class HTMLCanvasElement
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML