On 24 Jan 2010, at 03:03, David Duncan wrote:

> On Jan 23, 2010, at 6:06 AM, Keith Duncan wrote:
> 
>> I'm trying to apply CIFilters to images (using CALayer) and movies (using 
>> QTMovieLayer). However, some of these filters return a bigger image than the 
>> original content image/movie, such as a custom composite reflection filter 
>> I've written.
> 
> What is the specific problem you are seeing with the larger content? If you 
> mean the content is being resized downwards, then try changing the layer's 
> contentsGravity property to center (or one of the other non-resize variants).

That it isn't resized to fit inside the layer's bounds, I'm using 
kCAGravityResizeAspect and need the transformed contents to fit inside the 
bounds too.

The reflection filter in particular roughly doubles the height of the media 
(still image or movie frames).

Using kCAGravityCenter with media larger than the layer crops it.

Keith

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to