setContext method
Implementation
void setContext(CanvasRenderingContext2D ctx) {
ctx.strokeStyle = strokeStyle;
ctx.fillStyle = fillStyle;
ctx.globalAlpha = globalAlpha;
ctx.lineWidth = lineWidth;
ctx.lineCap = lineCap;
ctx.lineJoin = lineJoin;
ctx.miterLimit = miterLimit;
//ctx.lineDashOffset = lineDashOffset;
ctx.shadowOffsetX = shadowOffsetX;
ctx.shadowOffsetY = shadowOffsetY;
ctx.shadowBlur = shadowBlur;
ctx.shadowColor = shadowColor;
ctx.globalCompositeOperation = globalCompositeOperation;
ctx.font = font;
ctx.textAlign = textAlign;
ctx.textBaseline = textBaseline;
ctx.direction = direction;
ctx.imageSmoothingEnabled = imageSmoothingEnabled;
}