.. include:: ../substitutions
.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEDepict

.. _OEDepict_OEAddWatermark:


.. oe:function:: OEAddWatermark


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

      .. oe:api::

         void OEAddWatermark(OEImageBase& image, const std::string& text,
                             double scale = 1.0)
         void OEAddWatermark(OE2DMolDisplay& disp, const std::string& text,
                             double scale = 1.0)

   .. oe:language:: python

      .. oe:api:: python

         OEAddWatermark(image: OEImageBase, text: str, scale: float = 1.0) -> None
         OEAddWatermark(disp: OE2DMolDisplay, text: str, scale: float = 1.0) -> None

   Adds a watermark to an image or a molecule display.

   *text*
      The text of the watermark.

   *scale*
      The multiplier that can be used to increase or decrease the font size of the watermark text.
      This value has to be in the range of ``[0.5, 2.0]``.
