Re: CALayer resizing puzzle
Re: CALayer resizing puzzle
- Subject: Re: CALayer resizing puzzle
- From: vincent habchi <email@hidden>
- Date: Fri, 22 Jan 2010 20:51:44 +0100
Le 22 janv. 2010 à 19:41, David Duncan a écrit :
> This will set layer1 and layer2 to use the same contents, and have them use different parts of that bitmap.
>
> However your contentsRect is being set incorrectly. The contentsRect is a rectangle in a unit coordinate system, which means that the coordinates range from 0 to 1. Assuming your contents are 200x200, then the proper contentsRects would be CGRectMake(0.5, 0.5, 0.25, 0.25) and CGRectMake(0.0, 0.0, 0.25, 0.25).
Ok, thanks a lot. I'll tinker with my code and try to find further answers.
Have a great week-end
Vincent_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden