Canvas 如何在省道中用StageXL画点圆

Canvas 如何在省道中用StageXL画点圆,canvas,dart,stagexl,Canvas,Dart,Stagexl,我想画一个有点边框的圆圈。我试过这个: Shape Shape=新形状() …graphics.beginPath() …图形。圆(50,50,50) ..graphics.closePath() ..graphics.strokePattern(新的GraphicsPattern.repeat(新的BitmapData.fromImageElement(新的HTML.ImageElement(src:“img/dash.png”))) …添加到(阶段); } 但圆圈不会显示出来。似乎stro

我想画一个有点边框的圆圈。我试过这个:

Shape Shape=新形状()
…graphics.beginPath()
…图形。圆(50,50,50)
..graphics.closePath()
..graphics.strokePattern(新的GraphicsPattern.repeat(新的BitmapData.fromImageElement(新的HTML.ImageElement(src:“img/dash.png”)))
…添加到(阶段);
}

但圆圈不会显示出来。似乎strokePattern行破坏了我的代码。你知道怎么解决这个问题吗

我想出了这个解决方案:

void\u添加点圆(双x,双y,整数半径){
List xCoords=新列表();
List yCoords=新列表();
对于(int i=0;i