このファイル: /home/web6047/www/cgi-bin/prj/20180128-home_javascript/20191113-newapp.js/20191120-汎用要素リサイズ試作 - snapshot 20191211/c.js
1
AdditionalCanvas = function( cc ) {
2
this.cc = cc;
3
this.crispEdge = false;
4
}
5
AdditionalCanvas.prototype.setCrispEdge = function( crispEdge ) {
6
this.crispEdge = crispEdge;
7
8
if( this.crispEdge ) {
9
this.cc.canvas.style.imageRendering = "pixelated";
10
this.cc.canvas.style.imageRendering = "optimizeSpeed";
11
} else {
12
this.cc.canvas.style.imageRendering = "auto";
13
}
14
}