或者也许我在draw或drawImage方法中做错了什么,我不知道。我总是得到图片显示从9件在他们的原始顺序,而不是随机洗牌。 this.id = PicturePiece.count; g2.drawImageint j = 0, k = 0, pocet = 0;
for (int i = 1; i <= 9; i
/Image imgage = new Image("gfx/image.png");gc.save(); // saves the current state on stack, including the current transformgc.drawImageSnapshotParameters();
params.setFi
现在,我尝试使用drawImage绘制雪碧图: ctx.drawImage(this, x, y);}Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': No function但是,如果我使用实际的Image对象和其他相同的代码,即:
Sprite.prototype.dr