Python Forum
What does image.setMask do? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: What does image.setMask do? (/thread-31371.html)



What does image.setMask do? - A01 - Dec-07-2020

What does image.setMask do? (Does it make parts of the image transparent, or is it like an overlay?) Why does the mask have to be a square? Is there a better way to create an overlay for an image to be displayed in a window? (I want to only show parts of the image, but through 'holes').


RE: What does image.setMask do? - ndc85430 - Dec-07-2020

Did you read the documentation for whichever library this is? One would hope questions would be answered by decent docs. Also, it would help if you told people which library this is; don't make them guess.


RE: What does image.setMask do? - A01 - Dec-07-2020

(Dec-07-2020, 07:25 PM)ndc85430 Wrote: Did you read the documentation for whichever library this is? One would hope questions would be answered by decent docs. Also, it would help if you told people which library this is; don't make them guess.

You're right, I'm sorry! It is from the Psychopy library. I've searched a lot for documentation, but it is very, very scarce...
https://www.psychopy.org/api/visual/imagestim.html


RE: What does image.setMask do? - ndc85430 - Dec-08-2020

Have you tried asking on their forum? It seems like quite a specialised library and I suspect you'll get more help from their own community.