.. # split from OEGraphemeFunctions.rst:2354

.. include:: ../substitutions

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OEDrawSurfaceArc

.. oe:function:: OEDrawSurfaceArc

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEDrawSurfaceArc(OEDepict::OEImageBase& image,
                               unsigned int style,
                               const OEDepict::OE2DPoint& center,
                               double bgnAngle, double endAngle, double radius,
                               const OEDepict::OEPen& pen)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawSurfaceArc(image: OEImageBase, style: int, c: OE2DPoint,
                          bgnAngle: float, endAngle: float, radius: float,
                          pen: OEPen) -> bool

   Draws an arc with the given style.

   *image*
     |arc_image|

   *style*
     Specifies the style of the arc.
     This value has to be from the
     :oe:constns:`OEGrapheme::OESurfaceArcStyle` namespace.

   *center*
     |arc_center|

   *bgnAngle, endAngle*
     |arc_angles|

   *radius*
     |arc_radius|

   *pen*
     |arc_pen|

