Contents

transform(_:backgroundColor:destination:)

Applies a Core Graphics affine transformation to a floating-point 32-bit-per-channel, four-channel interleaved pixel buffer.

Declaration

func transform(_ transform: CGAffineTransform, backgroundColor: Pixel_FFFF? = (0, 0, 0, 0), destination: vImage.PixelBuffer<Format>)

Parameters

  • transform:

    The affine transformation matrix.

  • backgroundColor:

    An optional background color. If you pass nil, the operation uses the Kvimageedgeextend flag to extend the edges of the image infinitely.

  • destination:

    The destination pixel buffer.

See Also

Related Documentation

Applying affine transformations to images