.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEDrawCurvedRectangle

.. _OEDepict_OEDrawCurvedRectangle:


.. oe:function:: OEDrawCurvedRectangle


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

      .. oe:api::

         void OEDrawCurvedRectangle(OEImageBase& image, const OE2DPoint& tl,
                                    const OE2DPoint& br, const OEPen& pen,
                                    double radius)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawCurvedRectangle(image: OEImageBase, tl: OE2DPoint,
                               br: OE2DPoint, pen: OEPen, radius: float) -> None

   Draws a round rectangle with the given pen.

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

   *tl, br*
      The position of the top-left and bottom-right corner of the rectangle.

   *pen*
      The graphical properties of the border.

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

   .. seealso::

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