ICanvasRenderingContext2DCreatePattern Method (HTMLImageElement, 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
SyntaxICanvasPattern CreatePattern(
HTMLImageElement image,
string repetition
)
Function CreatePattern (
image As HTMLImageElement,
repetition As String
) As ICanvasPattern
ICanvasPattern^ CreatePattern(
HTMLImageElement^ image,
String^ repetition
)
abstract CreatePattern :
image : HTMLImageElement *
repetition : string -> ICanvasPattern
Parameters
- image
- Type: Aspose.HtmlHTMLImageElement
A HTMLImageElement 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