.. # split from OEGraphemeFunctions.rst:1898

.. include:: ../substitutions

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OEDrawSawCircle

.. oe:function:: OEDrawSawCircle

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

      .. oe:api::

         bool OEDrawSawCircle(OEDepict::OEImageBase& image,
                              const OEDepict::OE2DPoint& center, double radius,
                              const OEDepict::OEPen& pen,
                              unsigned int patternDirection = OEPatternDirection::Outside,
                              double patternAngle = 15.0,
                              double patternWidthRatio = 0.15)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawSawCircle(image: OEImageBase, c: OE2DPoint, radius: float,
                         pen: OEPen, patternDirection: int,
                         patternAngle: float = 15.0,
                         patternWidthRatio: float = 0.15) -> bool

   Draws a circle with the :oe:const:`OEGrapheme::OECircleStyle::Saw` style.

   .. _figure_draw_circle_saw:

   .. figure:: ../images/OEDrawSawCircle.*
      :align:  center

      **OEDrawSawCircle**

   *image*
     |circle_image|

   *center*
     |circle_center|

   *radius*
     |circle_radius|

   *pen*
     |circle_pen|

     See examples (A) and (B) in :ref:`Figure: OEDrawSawCircle<figure_draw_circle_saw>`.

   *patternDirection*
     |circle_pattern_dir|
     This value has to be from the :oe:constns:`OEGrapheme::OEPatternDirection` namespace.

     See example (C) in :ref:`Figure: OEDrawSawCircle<figure_draw_circle_saw>`.

   *patternAngle*
     |circle_pattern_angle|

     See example (D) in :ref:`Figure: OEDrawSawCircle<figure_draw_circle_saw>`.

   *patternWidthRatio*
     |circle_width_ratio|

     See example (E) in :ref:`Figure: OEDrawSawCircle<figure_draw_circle_saw>`.


