Project

General

Profile

Feature #992

Wt::WPainterPath::arcTo: no way to draw arc of ellipse

Added by Boris Nagaev over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
09/18/2011
Due date:
% Done:

0%

Estimated time:

Description

Hello!

Currently arc() can draw only arc of a circle.

  • Could you provide method to draw arc of ellipse?
  • arcMoveTo() can only move to point on an arc of ellipse, defined by top left position (x, y), and size width x height. Could you provide "sloped" ellipse too (i.e., ellipse with different Y coordinate of focuses)?

BR.

#1

Updated by Koen Deforche over 11 years ago

  • Status changed from New to Closed
  • Assignee set to Koen Deforche

Hey,

Unfortunately, this cannot be implemented in VML (IE up to version 8), except when the two ellipse axes are parallel to the X/Y axis, which means that the painter path cannot be rendered rotated. And it cannot be implemented in HTML5 canvas.

We actually used to have this method but removed it from the API.

Although, this could be revisited by deciding by approximating the arc using cubic splines (this is a fairly standard thing to do).

Regards,

koen

#2

Updated by Boris Nagaev over 11 years ago

Hello!

If it can't be implemented in several back-ends, what occurs, when setWorldTransform() is set?

BR.

Also available in: Atom PDF