• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CALayer resizing puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CALayer resizing puzzle (From: vincent habchi <email@hidden>)
 >Re: CALayer resizing puzzle (From: Scott Anguish <email@hidden>)
 >Re: CALayer resizing puzzle (From: Scott Anguish <email@hidden>)
 >Re: CALayer resizing puzzle (From: vincent habchi <email@hidden>)
 >Re: CALayer resizing puzzle (From: David Duncan <email@hidden>)
 >Re: CALayer resizing puzzle (From: vincent habchi <email@hidden>)
 >Re: CALayer resizing puzzle (From: David Duncan <email@hidden>)

  • Prev by Date: Imitating Behavior of a Sheet Window
  • Next by Date: Re: Imitating Behavior of a Sheet Window
  • Previous by thread: Re: CALayer resizing puzzle
  • Next by thread: [iPhone] Adding a UIView to current view
  • Index(es):
    • Date
    • Thread