Add support for clipping/cutting out (#435) (#448)

USAGE: overlayWith('overlayimage.png', { cutout: true } )
This commit is contained in:
Kleis Auke Wolthuizen
2016-06-25 17:48:01 +02:00
committed by Lovell Fuller
parent f1ead06645
commit 2e9cd83ed2
21 changed files with 167 additions and 10 deletions

View File

@@ -34,6 +34,7 @@ struct PipelineBaton {
size_t overlayBufferInLength;
int overlayGravity;
bool overlayTile;
bool overlayCutout;
int topOffsetPre;
int leftOffsetPre;
int widthPre;
@@ -99,6 +100,7 @@ struct PipelineBaton {
overlayBufferInLength(0),
overlayGravity(0),
overlayTile(false),
overlayCutout(false),
topOffsetPre(-1),
topOffsetPost(-1),
channels(0),