CompositeImage
CompositeImage() returns the second image composited onto the first at the specified offset, using the specified composite method.
The format of the CompositeImage method is:
MagickBooleanType CompositeImage(Image *image, const Image *source_image,const CompositeOperator compose, const MagickBooleanType clip_to_self,const ssize_t x_offset, const ssize_t y_offset,ExceptionInfo *exception)
A description of each parameter follows:
- image
- the canvas image, modified by he composition
- source_image
- the source image.
- compose
- This operator affects how the composite is applied to the image. The operators and how they are utilized are listed here http://www.w3.org/TR/SVG12/#compositing.
- clip_to_self
- set to MagickTrue to limit composition to area composed.
- x_offset
- the column offset of the composited image.
- y_offset
- the row offset of the composited image.
- Extra Controls from Image meta-data in 'image' (artifacts)
- o "compose:args" A string containing extra numerical arguments for specific compose methods, generally expressed as a 'geometry' or a comma separated list of numbers.
- Compose methods needing such arguments include "BlendCompositeOp" and "DisplaceCompositeOp".
- exception
- return any errors or warnings in this structure.
TextureImage
TextureImage() repeatedly tiles the texture image across and down the image canvas.
The format of the TextureImage method is:
MagickBooleanType TextureImage(Image *image,const Image *texture, ExceptionInfo *exception)
A description of each parameter follows:
- image
- the image.
- texture_image
- This image is the texture to layer on the background.