Instance Method

getOpacityRamp(for:startOpacity:endOpacity:timeRange:)

Obtains the opacity ramp that includes a specified time.

Declaration

func getOpacityRamp(for time: CMTime, startOpacity: UnsafeMutablePointer<Float>?, endOpacity: UnsafeMutablePointer<Float>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool

Parameters

time

If a ramp with a time range that contains the specified time has been set, information about the effective ramp for that time is supplied. Otherwise, information about the first ramp that starts after the specified time is supplied.

startOpacity

A pointer to a float to receive the starting opacity value for the opacity ramp.

This value may be NULL.

endOpacity

A pointer to a float to receive the ending opacity value for the opacity ramp.

This value may be NULL.

timeRange

A pointer to a CMTimeRange to receive the time range of the opacity ramp.

This value may be NULL.

Return Value

true if values are returned successfully, otherwise false. false is returned if time is beyond the duration of the last opacity ramp that has been set.