DrawingContext.composite

Composite filename/image with the receiver image.

  1. void composite(ssize_t xOffset, ssize_t yOffset, size_t width, size_t height, string filename, CompositeOperator compositeOp)
  2. void composite(ssize_t xOffset, ssize_t yOffset, size_t width, size_t height, Image image, CompositeOperator compositeOp)

Parameters

xOffset ssize_t

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

yOffset ssize_t

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

width size_t

Scale the composite image to this size. If value is 0, the composite image is not scaled.

height size_t

Scale the composite image to this size. If value is 0, the composite image is not scaled.

filename string

Filename of the mage to use in the composite operation.

compositeOp CompositeOperator

The composite operation to use.

Meta