Image.displace

Uses displacementMap to move color from img to the output image.

This method corresponds to the -displace option of ImageMagick's composite command.

  1. void displace(const(Image) displacementMap, int xAmplitude, int yAmplitude, ssize_t xOffset, ssize_t yOffset)
  2. void displace(const(Image) overlay, int srcPercentage, int dstPercentage, GravityType gravity = GravityType.NorthWestGravity)

Parameters

gravity

The gravity to use.

Meta