createPatternFromImage 方法

CanvasPattern createPatternFromImage(
  1. ImageElement image,
  2. String repetitionType
)

实现

CanvasPattern createPatternFromImage(
        ImageElement image, String repetitionType) =>
    JS('CanvasPattern', '#.createPattern(#, #)', this, image, repetitionType);