Add support for repeated/tiled overlay image (#443)

USAGE: overlayWith('overlayimage.png', { tile: true, gravity: northwest} )
When using the tile option, the gravity option is applied to the extracted part of the tiled overlay image.
This commit is contained in:
lemnisk8
2016-05-26 21:12:17 +05:30
committed by Lovell Fuller
parent e699e36270
commit 62554b766f
16 changed files with 103 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ struct PipelineBaton {
char *overlayBufferIn;
size_t overlayBufferInLength;
int overlayGravity;
bool overlayTile;
int topOffsetPre;
int leftOffsetPre;
int widthPre;
@@ -97,6 +98,7 @@ struct PipelineBaton {
bufferOutLength(0),
overlayBufferInLength(0),
overlayGravity(0),
overlayTile(false),
topOffsetPre(-1),
topOffsetPost(-1),
channels(0),