Skip to content

TASImage::DrawEllips2() works incorrectly when filling tilted ellipse #23120

Description

@linev

Check duplicate issues.

  • Checked for duplicates

Description

If ellipse tilted by 45 degree, TASimage::DrawEllips2() does not fill shape correctly.
See image:

Image

Follow up for #23014

Reproducer

void img()
{
   int kSize = 64;
   auto mg = new TASImage(kSize, kSize);
   const char *colour = "#FF2277CC";
   mg->DrawEllips2(kSize / 2, kSize / 2, kSize / 3, kSize / 7, 45, colour, -1);

   // this is point which not filled
   // mg->DrawCircle(kSize / 2 + kSize / 5 + 1, kSize / 2 - kSize / 5 - 2, 1, "#FF0000");

   auto c1 = new TCanvas("c1","img", 500, 500);
   c1->Add(mg);
}

ROOT version

master, all previous versions as well

Installation method

Build from source

Operating system

Linux

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions