Python Forum
What does image.setMask do?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does image.setMask do?
#1
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').
Reply
#2
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.
A01 likes this post
Reply
#3
(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
Reply
#4
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020