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.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntax ICanvasPattern CreatePattern(
HTMLCanvasElement image,
string repetition
)
Function CreatePattern (
image As HTMLCanvasElement,
repetition As String
) As ICanvasPattern
ICanvasPattern^ CreatePattern(
HTMLCanvasElement^ image,
String^ repetition
)
abstract CreatePattern :
image : HTMLCanvasElement *
repetition : string -> ICanvasPattern
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:
ICanvasPatternAn opaque object describing a pattern.
See Also