[08 Feb 2009] Feature Request

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 591
Joined: Sun Feb 21, 2010 1:28 am

[08 Feb 2009] Feature Request

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 08 Feb 2009 20:18:01 -0000

Hi Andreas,

Would it be possible to have the same basic functionality of SaveSnapshot() in a new function that can send a snapshot of the window or screen directly to a brush within Hollywood (without needing to save it as a graphic file and then load it as a brush)? Also, could an option be added to send only a portion of the screen or window grab (x, y, width, height) to a brush. Right now, in order to get a brush with just a small portion of the window's border, I need to use SaveSnapshot(), then LoadBrush(), then CropBrush(); so it would be nice if all this could be done quicker within one function.

Thanks,
User avatar
airsoftsoftwair
Posts: 5914
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[09 Feb 2009] Re: Feature Request

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 09 Feb 2009 17:21:13 +0100
Hi Andreas,

Would it be possible to have the same basic functionality of SaveSnapshot() in a new function that can send a snapshot of the window or screen directly to a brush within Hollywood (without needing to save it as a graphic file and then load it as a brush)? Also, could an option be added to send only a portion of the screen or window grab (x, y, width, height) to a brush. Right now, in order to get a brush with just a small portion of the window's border, I need to use SaveSnapshot(), then LoadBrush(), then CropBrush(); so it would be nice if all this could be done quicker within one function.
If layers are enabled, this is already possible with Hollywood 3 using DisplayBGPicPart() with the last argument set to TRUE.

In Hollywood 4 DisplayBGPicPart() command has been extended to work also without layers. For example, to create a copy of the current display, you could do the following in Hollywood 4:

Code: Select all

; dimensions of the tile of the current screen that shall be copied to a brush
part={x = 100, y = 100, width = 256, height = 256}

CreateBrush(1, part.width, part.height)
SelectBrush(1)
DisplayBGPicPart(<bgpicid>, part.x, part.y, part.width, part.height, 0, 0, TRUE)
EndSelect
PEB
Posts: 591
Joined: Sun Feb 21, 2010 1:28 am

[09 Feb 2009] Re: Feature Request

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 09 Feb 2009 17:09:45 -0000

This only works with parts of the background pic. What I'm doing is getting a snapshot of something that is beyond the background (either the window border itself or something on the screen outside of the Hollywood window). This can be done with SaveSnapshot(), but it would be nice to be able to do this all internally.
User avatar
airsoftsoftwair
Posts: 5914
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[13 Feb 2009] Re: Re: Feature Request

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 13 Feb 2009 22:46:54 +0100
This only works with parts of the background pic. What I'm doing is getting a snapshot of something that is beyond the background (either the window border itself or something on the screen outside of the Hollywood window). This can be done with SaveSnapshot(), but it would be nice to be able to do this all internally.
Ok, I understand. I'll see if I can implement this functionality.
Locked