Lines Matching full:ctx
24 ctx,
28 ctx.beginPath();
29 ctx.moveTo(x0, y0);
30 ctx.lineTo(x1, y1);
31 ctx.lineTo(x2, y2);
32 ctx.closePath();
56 ctx.save();
57 ctx.transform(a, b, c, d, e, f);
58 ctx.clip();
59 ctx.drawImage(img, 0, 0);
60 ctx.restore();
152 var ctx = this.canvas_.getContext('2d');
157 ctx.clearRect(0, 0, this.canvas_.width, this.canvas_.height);
159 ctx.save();
160 ctx.scale(ui.RASTER_SCALE, ui.RASTER_SCALE);
165 vp.applyTransformToContext(ctx);
166 ctx.lineWidth = vp.getDeviceLineWidthAssumingTransformIsApplied(1.0);
176 ctx.drawImage(quad.canvas, 0, 0,
180 ctx.save();
186 ctx, quad.canvas,
192 ctx, quad.canvas,
197 ctx.restore();
202 ctx.fillStyle = quad.backgroundColor;
203 ctx.beginPath();
204 ctx.moveTo(quad.p1[0], quad.p1[1]);
205 ctx.lineTo(quad.p2[0], quad.p2[1]);
206 ctx.lineTo(quad.p3[0], quad.p3[1]);
207 ctx.lineTo(quad.p4[0], quad.p4[1]);
208 ctx.closePath();
209 ctx.fill();
216 ctx.beginPath();
217 ctx.moveTo(quad.p1[0], quad.p1[1]);
218 ctx.lineTo(quad.p2[0], quad.p2[1]);
219 ctx.lineTo(quad.p3[0], quad.p3[1]);
220 ctx.lineTo(quad.p4[0], quad.p4[1]);
221 ctx.closePath();
223 ctx.strokeStyle = quad.borderColor;
225 ctx.strokeStyle = 'rgb(128,128,128)';
226 ctx.stroke();
230 ctx.lineWidth = vp.getDeviceLineWidthAssumingTransformIsApplied(8.0);
240 ctx.strokeStyle = tmp.toString();
242 ctx.strokeStyle = quad.upperBorderColor;
245 ctx.beginPath();
246 ctx.moveTo(quad.p1[0], quad.p1[1]);
247 ctx.lineTo(quad.p2[0], quad.p2[1]);
248 ctx.lineTo(quad.p3[0], quad.p3[1]);
249 ctx.lineTo(quad.p4[0], quad.p4[1]);
250 ctx.closePath();
251 ctx.stroke();
254 ctx.restore();