Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Blending ui.Image doesn't work
-
Hi all,
trying to blend two images using UI module using the code below. But it seems that the blend mode is ignored and one image just being drawn on top of the other. It works if I draw e.g. a rect on top of the first image but not with two images. Any suggestions?img = ui.Image.named('Test_Lenna') with ui.ImageContext(200,200) as ctx: ui.set_color('red') ui.fill_rect(0,0,200,200) ui.set_blend_mode(ui.BLEND_MULTIPLY) img.draw(50,50,100,100) result = ctx.get_image() result.show()
This is the resulting image: