Contents

transform(_:backgroundColor:useFloat16Accumulator:destination:)

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

Declaration

func transform(_ transform: CGAffineTransform, backgroundColor: Pixel_16F16F? = (0, 0), useFloat16Accumulator: Bool = false, 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.

  • useFloat16Accumulator:

    A Boolean value that specifies that the function uses faster, but lower-precision, internal arithmetic. For more information, see Kvimageusefp16accumulator.

  • destination:

    The destination pixel buffer.

See Also

Related Documentation

Applying affine transformations to images