Package chemaxon.office.jchemoffice
Interface IMoleculeRenderer
Interface for a generic renderer that can be registered in a renderer container.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Render(IMoleculeData molecule, chemaxon.formats.internal.image.ImageExporter imageWriter, int width, int height, double dpiFactor) Deprecated, for removal: This API element is subject to removal in a future version.Use the endpoint with String format options.byte[]Render(IMoleculeData molecule, String format) Render the given molecule in the specified format.
-
Method Details
-
Render
Render the given molecule in the specified format.- Parameters:
molecule- - what to renderformat- - 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
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2027) byte[] Render(IMoleculeData molecule, chemaxon.formats.internal.image.ImageExporter imageWriter, int width, int height, double dpiFactor) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Use the endpoint with String format options.Render the given molecule in the specified format.- Parameters:
molecule- - what to renderimageWriter- - writer that contains the all rendering settingswidth- - width of the image as an overrideheight- - height of the image as an overridedpiFactor- - dot per inch - screen resolution modifier- Returns:
- - the byte array (stream) representing the image of molecule.
- Throws:
Exception
-