AlphaTab.Rendering.Glyphs.CrescendoGlyph.PaintGrouped C# (CSharp) Method

PaintGrouped() protected method

protected PaintGrouped ( float cx, float cy, float endX, ICanvas canvas ) : void
cx float
cy float
endX float
canvas ICanvas
return void
        protected override void PaintGrouped(float cx, float cy, float endX, ICanvas canvas)
        {
            var startX = cx + X;
            var height = Height * Scale;
            canvas.BeginPath();
            if (_crescendo == CrescendoType.Crescendo)
            {
                canvas.MoveTo(endX, cy + Y);
                canvas.LineTo(startX, cy + Y + height / 2);
                canvas.LineTo(endX, cy + Y + height);
            }
            else
            {
                canvas.MoveTo(cx + X, cy + Y);
                canvas.LineTo(endX, cy + Y + (height / 2));
                canvas.LineTo(cx + X, cy + Y + height);
            }
            canvas.Stroke();
        }