schrodinger.protein.helm.image_generation module¶
- schrodinger.protein.helm.image_generation.get_image_bytes(helm_mol: Mol, options: Optional[ImageGenOptions] = None) bytes ¶
Get a byte array of the image generated by the helm widget
- Parameters:
helm_mol – a coarse-grained rdkit mol representing a HELM molecule
options – options for image generation. Background color, image size, and image format will be honored
- schrodinger.protein.helm.image_generation.paint_scene(painter: QPainter, helm_widget: HelmWidget, options: ImageGenOptions)¶
Paint the helm widget’s scene to the specified painter
- Painter:
a QPainter object
- Helm_widget:
widget used to draw the HELM molecule
- Options:
options for image generation