Instance Method

getCropRectangleRampForTime:startCropRectangle:endCropRectangle:timeRange:

Obtains the crop rectangle ramp that includes the specified time.

Declaration

- (BOOL)getCropRectangleRampForTime:(CMTime)time startCropRectangle:(CGRect *)startCropRectangle endCropRectangle:(CGRect *)endCropRectangle timeRange:(CMTimeRange *)timeRange;

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.

startCropRectangle

A pointer to a CGRect to receive the starting crop rectangle value for the crop rectangle ramp.

May be NULL.

endCropRectangle

A pointer to a CGRect to receive the ending crop rectangle value for the crop rectangle ramp.

This value may be NULL.

timeRange

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

This value may be NULL.

Return Value

NO will be returned if the specified time is beyond the duration of the last crop rectangle ramp that has been set.

See Also

Getting Opacity, Transform, and Cropping Ramps

- getOpacityRampForTime:startOpacity:endOpacity:timeRange:

Obtains the opacity ramp that includes a specified time.

- getTransformRampForTime:startTransform:endTransform:timeRange:

Obtains the transform ramp that includes a specified time.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software