Page 1 of 1

[26 Mar 2008] Noob Question :)

Posted: Sat Jun 13, 2020 5:31 pm
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?

[26 Mar 2008] Re: Noob Question :)

Posted: Sat Jun 13, 2020 5:31 pm
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?

[26 Mar 2008] Re: Noob Question :)

Posted: Sat Jun 13, 2020 5:31 pm
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 :)

[26 Mar 2008] Re: Noob Question :)

Posted: Sat Jun 13, 2020 5:31 pm
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.

[26 Mar 2008] Re: Noob Question :)

Posted: Sat Jun 13, 2020 5:31 pm
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 :)

[27 Mar 2008] Re: Noob Question :)

Posted: Sat Jun 13, 2020 5:31 pm
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.

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

Posted: Sat Jun 13, 2020 5:31 pm
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().