Contents

transform(_:backgroundColor:destination:)

Applies a Core Graphics affine transformation to an 8-bit planar pixel buffer.

Declaration

func transform(_ transform: CGAffineTransform, backgroundColor: Pixel_8? = Pixel_8(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