[26 Mar 2008] Noob Question :)

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[26 Mar 2008] Noob Question :)

Post by Allanon »

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?
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[26 Mar 2008] Re: Noob Question :)

Post by PEB »

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?
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[26 Mar 2008] Re: Noob Question :)

Post by Allanon »

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 :)
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[26 Mar 2008] Re: Noob Question :)

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 26 Mar 2008 17:56:27 +0100
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?
Good question. I don't know whether I considered this issue when implementing the gfx library.

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.
User avatar
Ferrule Media
Posts: 57
Joined: Sat Feb 13, 2010 7:53 pm
Location: Haugesund, Norway
Contact:

[26 Mar 2008] Re: Noob Question :)

Post by Ferrule Media »

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!
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.
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 !

Thanks for the great work!

Best regards

Torgeir :)
Ferrule Media
Espevikvn 18
5521 Haugesund
Norway
www.ferrule-media.no
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[27 Mar 2008] Re: Noob Question :)

Post by Allanon »

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.
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[30 Mar 2008] Re: Re: Noob Question :)

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 30 Mar 2008 11:54:18 +0200
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.
Yes, I totally agree. I'll implement support for this in the next version. Until then, you can use the workaround with SaveSnapshot().
Locked