Project

General

Profile

Actions

Feature #992

closed

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

Added by Boris Nagaev over 12 years ago. Updated over 12 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.

Actions #1

Updated by Koen Deforche over 12 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

Actions #2

Updated by Boris Nagaev over 12 years ago

Hello!

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

BR.

Actions

Also available in: Atom PDF