Method: Magick::Image#composite_channel

Defined in:
ext/RMagick/rmimage.cpp

#composite_channel(image, x_off, y_off, composite_op, channel = Magick::AllChannels) ⇒ Magick::Image #composite_channel(image, x_off, y_off, composite_op, *channels) ⇒ Magick::Image #composite_channel(image, gravity, composite_op, channel = Magick::AllChannels) ⇒ Magick::Image #composite_channel(image, gravity, composite_op, *channels) ⇒ Magick::Image #composite_channel(image, gravity, x_off, y_off, composite_op, channel = Magick::AllChannels) ⇒ Magick::Image #composite_channel(image, gravity, x_off, y_off, composite_op, *channels) ⇒ Magick::Image

Composite the source over the destination image channel as dictated by the affine transform.

Overloads:

  • #composite_channel(image, x_off, y_off, composite_op, channel = Magick::AllChannels) ⇒ Magick::Image

    Parameters:

    • image (Magick::Image, Magick::ImageList)

      Either an imagelist or an image. If an imagelist, uses the current image.

    • x_off (Numeric)

      the x-offset of the composited image, measured from the upper-left corner of the image.

    • y_off (Numeric)

      the y-offset of the composited image, measured from the upper-left corner of the image.

    • composite_op (Magick::CompositeOperator)

      the composite operator

    • channel (Magick::ChannelType) (defaults to: Magick::AllChannels)

      a ChannelType arguments.

  • #composite_channel(image, x_off, y_off, composite_op, *channels) ⇒ Magick::Image

    Parameters:

    • image (Magick::Image, Magick::ImageList)

      Either an imagelist or an image. If an imagelist, uses the current image.

    • x_off (Numeric)

      the x-offset of the composited image, measured from the upper-left corner of the image.

    • y_off (Numeric)

      the y-offset of the composited image, measured from the upper-left corner of the image.

    • composite_op (Magick::CompositeOperator)

      the composite operator

    • *channels (Magick::ChannelType)

      one or more ChannelType arguments.

  • #composite_channel(image, gravity, composite_op, channel = Magick::AllChannels) ⇒ Magick::Image

    Parameters:

    • image (Magick::Image, Magick::ImageList)

      Either an imagelist or an image. If an imagelist, uses the current image.

    • gravity (Magick::GravityType)

      A GravityType value that specifies the location of img on image.

    • composite_op (Magick::CompositeOperator)

      the composite operator

    • channel (Magick::ChannelType) (defaults to: Magick::AllChannels)

      a ChannelType arguments.

  • #composite_channel(image, gravity, composite_op, *channels) ⇒ Magick::Image

    Parameters:

    • image (Magick::Image, Magick::ImageList)

      Either an imagelist or an image. If an imagelist, uses the current image.

    • gravity (Magick::GravityType)

      A GravityType value that specifies the location of img on image.

    • composite_op (Magick::CompositeOperator)

      the composite operator

    • *channels (Magick::ChannelType)

      one or more ChannelType arguments.

  • #composite_channel(image, gravity, x_off, y_off, composite_op, channel = Magick::AllChannels) ⇒ Magick::Image

    Parameters:

    • image (Magick::Image, Magick::ImageList)

      Either an imagelist or an image. If an imagelist, uses the current image.

    • gravity (Magick::GravityType)

      A GravityType value that specifies the location of img on image.

    • x_off (Numeric)

      the x-offset of the composited image, measured from the upper-left corner of the image.

    • y_off (Numeric)

      the y-offset of the composited image, measured from the upper-left corner of the image.

    • composite_op (Magick::CompositeOperator)

      the composite operator

    • channel (Magick::ChannelType) (defaults to: Magick::AllChannels)

      a ChannelType arguments.

  • #composite_channel(image, gravity, x_off, y_off, composite_op, *channels) ⇒ Magick::Image

    Parameters:

    • image (Magick::Image, Magick::ImageList)

      Either an imagelist or an image. If an imagelist, uses the current image.

    • gravity (Magick::GravityType)

      A GravityType value that specifies the location of img on image.

    • x_off (Numeric)

      the x-offset of the composited image, measured from the upper-left corner of the image.

    • y_off (Numeric)

      the y-offset of the composited image, measured from the upper-left corner of the image.

    • composite_op (Magick::CompositeOperator)

      the composite operator

    • *channels (Magick::ChannelType)

      one or more ChannelType arguments.

Returns:

See Also:



3935
3936
3937
3938
3939
# File 'ext/RMagick/rmimage.cpp', line 3935

VALUE
Image_composite_channel(int argc, VALUE *argv, VALUE self)
{
    return composite_channel(False, argc, argv, self);
}