Forum Archive

Ui.image only displays the silhouette?

Bjucha

Hello!

B1 = ui.Button()
B1.image = ui.Image.named('emj:Skull')

it only displays the silhouette and not the image itself.
To clarify I want the button to look like a skull and not have an icon on the button with the skull.

However it does not look so good since it's only displays the shape/silhouette and not image

What Im doing wrong?

mikael

Use original rendering mode to get the "normal" image.

E.g.:

icon =   ui.Image(image_name).with_rendering_mode(ui.RENDERING_MODE_ORIGINAL)
Bjucha

@mikael ok gonna try that. Thanks!

Bjucha

@mikael it worked! Looks great now. Thank you