premultiplyAlpha

Premultiplies the alpha channel of the image. This operation multiplies the RGB channels by the alpha channel.

Return

A new Image object with the premultiplied alpha channel.

Parameters

other

The image to premultiply the alpha channel with.