OEAddInteractiveIcon
OEAddInteractiveIcon(disp: OE2DMolDisplay, loc: int,
scale: float = 1.0) -> None
OEAddInteractiveIcon(image: OEImageBase, loc: int, scale: float = 1.0) -> None
Adds an icon to an image or a molecule display that indicates that the image is interactive.
- loc
This value has to be from the
OEIconLocationnamespace.- scale
The multiplier that can be used to increase or decrease the size of the icon. This value has to be in the range of
[0.5, 2.0].
hover the mouse over on the rectangle below
Example of adding the logo to an interactive SVG image