.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEWriteImageToBytes

.. _OEDepict_OEWriteImageToBytes:


.. oe:function:: OEWriteImageToBytes


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

      .. oe:api::

         OEWriteImageToBytes(ext: str, image: OEImage) -> bytes

   .. oe:language:: python

      .. oe:api:: python

         OEWriteImageToBytes(extension: str, image: OEImage) -> bytes

   Same as the :oe:func:`OEDepict::OEWriteImageToString` function.
