我試圖在柔性繪製位圖,原始位圖是如何使用beginBitmapFill?
但實際上它顯示在應用程序看起來像
這裏是代碼:
this.component.graphics.beginBitmapFill(leakBitmapData);
this.component.graphics.drawRect(leakPoint.x-halfWidth,leakPoint.y-halfHeight,leakBitmapData.width,leakBitmapData.height);
this.component.graphics.endFill();
只有當我繪製矩形在(0,0),它看起來正確的。 爲什麼?
我剛剛自己解決了這個問題,但你是對的!這是正確的答案。 – wtm
糟糕。我從來沒有注意到你已經知道了。那麼,我猜想只是一個參考。 – montzkie