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)
    class Image
  2. void displace(const(Image) overlay, int srcPercentage, int dstPercentage, GravityType gravity)

Parameters

displacementMap const(Image)

The source image for the composite operation.

xAmplitude int

The maximum displacement on the x-axis.

yAmplitude int

The maximum displacement on the y-axis.

xOffset ssize_t

The x offset to use.

yOffset ssize_t

The y offset to use.

Meta