- DstATopComposition
- DstInComposition
- DstOutComposition
- DstOverComposition
- SrcATopComposition
- SrcInComposition
- SrcOutComposition
- SrcOverComposition
- XorComposition
All composition filters have the same props
prop | type | default | desc |
---|---|---|---|
dstImage | Filterable | - | required |
dstTransform | Transform |
{ anchor: { x: 0.5, y: 0.5 }, translate: { x: 0.5, y: 0.5 }, scale: 'COVER', rotate: 0 } |
|
srcImage | Filterable | - | required |
srcTransform | Transform |
{ anchor: { x: 0.5, y: 0.5 }, translate: { x: 0.5, y: 0.5 }, scale: 'COVER', rotate: 0 } |
|
resizeCanvasTo | 'dstImage' | 'srcImage' | - | can be used when one image is created by a Generator to specify that canvas size is equal to another image size |