[26 Dec 2007] clipregions

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[26 Dec 2007] clipregions

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on 26 Dec 2007 16:48:46 +0100

When working with clipregions one has to keep in mind the absolute positions to draw to. Would it be possible to Select an Clipregion and use it e.g. like SelectBrush()?

And another goodie would be becoming able to get metadata of an existing Clipregion, like size and position via GetAttribute().

Thanks a lot.
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[27 Dec 2007] Re: clipregions

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 27 Dec 2007 00:10:16 +0100
When working with clipregions one has to keep in mind the absolute positions to draw to. Would it be possible to Select an Clipregion and use it e.g. like SelectBrush()?
Probably not. But it's easy to do it yourself. Just write a convenience function, e.g.

Code: Select all

Function p_MyDisplayBrush(id, x, y)
    DisplayBrush(id, x + CLIPREG_X, y + CLIPREG_Y)
EndFunction
And done :-)
And another goodie would be becoming able to get metadata of an existing Clipregion, like size and position via GetAttribute().
Ok, makes sense. I've just implemented it. Your wish is my command :-)
Locked