Skip to content

Generate high resolution molecular image in Black & White format #12

@RohitPModani

Description

@RohitPModani

Hi,
I am currently using MolDraw2DCairo to create a /png molecular image. I am facing 2 issues which I have mentioned below. Please let me know how to fix these.

  1. The image generated is of a very low resolution, and because of this it is blurr when i print it to pdf.
  2. I am unable to generate the image in Black & White format. On Google it suggests to use 'useBWColourPalette' but this option is not available under MolDraw2DCairo.DrawOptions().

Please let me know how to fix these issues. I have pasted the code snippet below. Thank you.

var view = new MolDraw2DCairo(width, height);
view.drawMolecule(mol);
view.finishDrawing();
view.writeDrawingText(imageName);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions