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 = CompositeOperator.OverCompositeOp)
  2. void composite(ssize_t xOffset, ssize_t yOffset, size_t width, size_t height, Image image, CompositeOperator compositeOp = CompositeOperator.OverCompositeOp)
    class DrawingContext

Parameters

xOffset
Type: ssize_t

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

yOffset
Type: ssize_t

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

width
Type: size_t

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

height
Type: size_t

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

image
Type: Image

Image to use in the composite operation.

compositeOp

The composite operation to use.

Meta