Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 26 Mar 2008 14:03:50 -0000
Hello, sorry for my noob question but I can find a function able to create a brush from a portion of screen, not a bgpic, but what is currently visible on the Hollywood window. I need it because I want to save a portion of screen before a huge number of primitives drawing, after some user interaction I want to restore back the saved portion. Can someone help?
[26 Mar 2008] Noob Question :)
[26 Mar 2008] Noob Question :)
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | ☆★ All my links ★☆
[26 Mar 2008] Re: Noob Question :)
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 26 Mar 2008 07:13:10 -0700 (PDT)
Have you tried SaveSnapshot() with the mode set for #SNAPDISPLAY?
Have you tried SaveSnapshot() with the mode set for #SNAPDISPLAY?
[26 Mar 2008] Re: Noob Question :)
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 26 Mar 2008 14:55:20 -0000
So you suggest to
- SaveSnapshot of the entire window
- Load this saved pic into a brush with cropping coordinates
- Put the brush on the screen with DisaplyBrush
I will try it, but if I could find a way without accessing the filesystem should be more efficent. Thanks for the quick answer
So you suggest to
- SaveSnapshot of the entire window
- Load this saved pic into a brush with cropping coordinates
- Put the brush on the screen with DisaplyBrush
I will try it, but if I could find a way without accessing the filesystem should be more efficent. Thanks for the quick answer
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | ☆★ All my links ★☆
- airsoftsoftwair
- Posts: 5833
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[26 Mar 2008] Re: Noob Question :)
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 26 Mar 2008 17:56:27 +0100
I don't have access to the Hollywood source code right now. It MIGHT work with DisplayBGPicPart() when the last argument (layers) is set to TRUE. The documentation says that this only works with layers enabled, but it probably will also do without. You have to try it. I don't know because I can't look into the source code right now.
Otherwise, I think I should implement it that it does also work without layers because saving a portion of the screen to a brush is a common operation which should be supported by Hollywood.
Good question. I don't know whether I considered this issue when implementing the gfx library.Hello, sorry for my noob question but I can find a function able to create a brush from a portion of screen, not a bgpic, but what is currently visible on the Hollywood window. I need it because I want to save a portion of screen before a huge number of primitives drawing, after some user interaction I want to restore back the saved portion. Can someone help?
I don't have access to the Hollywood source code right now. It MIGHT work with DisplayBGPicPart() when the last argument (layers) is set to TRUE. The documentation says that this only works with layers enabled, but it probably will also do without. You have to try it. I don't know because I can't look into the source code right now.
Otherwise, I think I should implement it that it does also work without layers because saving a portion of the screen to a brush is a common operation which should be supported by Hollywood.
- Ferrule Media
- Posts: 57
- Joined: Sat Feb 13, 2010 7:53 pm
- Location: Haugesund, Norway
- Contact:
[26 Mar 2008] Re: Noob Question :)
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 26 Mar 2008 19:31:46 -0500
Hello Andreas
This kind of function would be great to have in Hollywood designer aswell!
Thanks for the great work!
Best regards
Torgeir
Hello Andreas
This kind of function would be great to have in Hollywood designer aswell!
Beeing able to mark an area on the presentation-screen, and let hollywood-designer make a brush out of the selected area would be a very nice feature indeed! It should make the brush out of all visable layers present on screen. I would love to see this in a future version of hollywood designer !Otherwise, I think I should implement it that it does also work without layers because saving a portion of the screen to a brush is a common operation which should be supported by Hollywood.
Thanks for the great work!
Best regards
Torgeir
[27 Mar 2008] Re: Noob Question :)
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 27 Mar 2008 10:10:33 -0000
Hello Andreas, I've done a short test with DisplayBGPicPart but It doesn't solve my problem because if I haven't layers enabled it only show the bg pic part, I cannot enable layers because I'm using SetClipRegion() pretty much in my routines and it's incompatible with DisplayBGPicPart(). Moreover I need to save that portion in memory to display it later, so it would be wonderfull if you can implement such a function to store "what we see on the window" to a brush. This function would be very usefull for implement, for example, fake windows, giving a way to save the background, draw a fake window within the hollywood one and then restore the background without redrawing/rebuilding the entire display.
Hello Andreas, I've done a short test with DisplayBGPicPart but It doesn't solve my problem because if I haven't layers enabled it only show the bg pic part, I cannot enable layers because I'm using SetClipRegion() pretty much in my routines and it's incompatible with DisplayBGPicPart(). Moreover I need to save that portion in memory to display it later, so it would be wonderfull if you can implement such a function to store "what we see on the window" to a brush. This function would be very usefull for implement, for example, fake windows, giving a way to save the background, draw a fake window within the hollywood one and then restore the background without redrawing/rebuilding the entire display.
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | ☆★ All my links ★☆
- airsoftsoftwair
- Posts: 5833
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[30 Mar 2008] Re: Re: Noob Question :)
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 30 Mar 2008 11:54:18 +0200
Yes, I totally agree. I'll implement support for this in the next version. Until then, you can use the workaround with SaveSnapshot().Hello Andreas, I've done a short test with DisplayBGPicPart but It doesn't solve my problem because if I haven't layers enabled it only show the bg pic part, I cannot enable layers because I'm using SetClipRegion() pretty much in my routines and it's incompatible with DisplayBGPicPart(). Moreover I need to save that portion in memory to display it later, so it would be wonderfull if you can implement such a function to store "what we see on the window" to a brush. This function would be very usefull for implement, for example, fake windows, giving a way to save the background, draw a fake window within the hollywood one and then restore the background without redrawing/rebuilding the entire display.