Image.blend

Adds the overlay image to the target image according to srcPercent and dstPercent.

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

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

Parameters

overlay
Type: const(Image)

The source image for the composite operation.

srcPercentage
Type: int

Percentage for the source image.

dstPercentage
Type: int

Percentage for this image.

gravity

The gravity to use for the overlay.

Meta