.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEDrawCurvedBorder

.. _OEDepict_OEDrawCurvedBorder:

.. oe:function:: OEDrawCurvedBorder

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

      .. oe:api::

         void OEDrawCurvedBorder(OEImageBase& image, const OEPen& pen,
                                 double radius)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawCurvedBorder(image: OEImageBase, pen: OEPen, radius: float) -> None

   Draws a round rectangle around the image with the given pen.

   *image*
      The image around which the border is drawn.

   *pen*
      The graphical properties of the border.

   *radius*
      The parameter that determines the roundedness of the corners of the rectangle.

   See code snippet below and the corresponding image in
   :ref:`Figure: Example of using the OEDrawCurvedBorder function <figure_OEDrawCurvedBorder>`.

   .. oe:source:: OEDrawBorder.py
      :language: python
      :noindent:
      :frag:     SNIPPET-OEDrawCurvedBorder

   .. oe:source:: OEDrawBorder.cpp
      :language: c++
      :noindent:
      :frag:     SNIPPET-OEDrawCurvedBorder

   .. oe:source:: OEDrawBorder.java
      :language: java
      :noindent:
      :frag:     SNIPPET-OEDrawCurvedBorder

   .. oe:source:: OEDrawBorder.cs
      :language: csharp
      :noindent:
      :frag:     SNIPPET-OEDrawCurvedBorder

   .. _figure_OEDrawCurvedBorder:

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

      **Example of using the OEDrawCurvedBorder function**

   .. seealso::

      * :ref:`OEImageBase <OEDepict_OEImageBase>` class
      * :ref:`OEPen <OEDepict_OEPen>` class
      * :oe:func:`OEDepict::OEDrawBorder` function
      * :oe:func:`OEDepict::OEDrawCurvedRectangle` function
