Interface IMoleculeRenderer


@PublicAPI public interface IMoleculeRenderer
Interface for a generic renderer that can be registered in a renderer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Render(IMoleculeData molecule, chemaxon.marvin.io.image.ImageExporter imageWriter, int width, int height, double dpiFactor)
    Render the given molecule in the specified format.
    byte[]
    Render(IMoleculeData molecule, String format)
    Render the given molecule in the specified format.
  • Method Details

    • Render

      byte[] Render(IMoleculeData molecule, String format) throws IOException
      Render the given molecule in the specified format.
      Parameters:
      molecule - - what to render
      format - - in what format it should look like (official ChemAxon rendering setting literal)
      Returns:
      - the byte array (stream) representing the image of molecule.
      Throws:
      IOException
    • Render

      byte[] Render(IMoleculeData molecule, chemaxon.marvin.io.image.ImageExporter imageWriter, int width, int height, double dpiFactor) throws Exception
      Render the given molecule in the specified format.
      Parameters:
      molecule - - what to render
      imageWriter - - writer that contains the all rendering settings
      width - - width of the image as an override
      height - - height of the image as an override
      dpiFactor - - dot per inch - screen resolution modifier
      Returns:
      - the byte array (stream) representing the image of molecule.
      Throws:
      Exception