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
    void
    displace
    (
    ,,,
    ssize_t xOffset
    ,
    ssize_t yOffset
    )
  2. void displace(const(Image) overlay, int srcPercentage, int dstPercentage, GravityType gravity = GravityType.NorthWestGravity)

Parameters

displacementMap
Type: const(Image)

The source image for the composite operation.

xAmplitude
Type: int

The maximum displacement on the x-axis.

yAmplitude
Type: int

The maximum displacement on the y-axis.

xOffset
Type: ssize_t

The x offset to use.

yOffset
Type: ssize_t

The y offset to use.

Meta