Page 1 of 1

Import "funny" snapshot

Posted: Thu Aug 06, 2020 11:59 am
by richmond62
Well, not very funny, but, possibly, useful (Wow, my commas might run out in a minute).

I was musing, as one does, on windowShape and something I read the other day (which I now cannot locate)
about someone wanting to "punch holes" in stack windows using windowShape on the fly.

Initially that seemed a bit bonkers until I wondered about whether it might be possible to import a snapshot
of all or part of a stack windows to use as a mask for a windowShape.

It certainly seems to work.

Re: Import "funny" snapshot

Posted: Thu Aug 06, 2020 2:17 pm
by bogs
I'm not positive I understand the goal. You can certainly have a group of images (depending on how you want the holes to appear, an animated gif would do), and have the window shape change based on the image used.

For instance, this little time waster (press esc. to kill it).
minWalk.zip
I took a walk about...
(24.57 KiB) Downloaded 226 times

Re: Import "funny" snapshot

Posted: Thu Aug 06, 2020 3:23 pm
by richmond62
Well . . .

Imagine a very goofy game where there was a drag-and-drop image, and when an end-user
having dragged the image then dropped it . . . and there were areas designated as where
the end-user could NOT drag the image, and those were desiganated by transparent patches
right through the stack to the underlying whatever (end-user's desktop, photo of end-user's
granny, windows of other apps, etc.).

Those transparent no-go areas changing dependent on where the image were dropped . . .

Re: Import "funny" snapshot

Posted: Thu Aug 06, 2020 7:45 pm
by richmond62
I must be bonkers. 8)
-
bonkers.jpg