Page 1 of 1

[26 Dec 2007] clipregions

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

[27 Dec 2007] Re: clipregions

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 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 :-)