CanvasPattern convertPatternToData