• 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: UI to allow user to scale and crop image within a circle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI to allow user to scale and crop image within a circle


  • Subject: Re: UI to allow user to scale and crop image within a circle
  • From: David Duncan <email@hidden>
  • Date: Wed, 24 Feb 2016 15:51:13 -0800

> On Feb 24, 2016, at 3:47 PM, Quincey Morris <email@hidden> wrote:
>
> On Feb 24, 2016, at 13:44 , Graham Cox <email@hidden <mailto:email@hidden>> wrote:
>>
>> However, if you use a clipping path, you can just create this on the fly as part of -drawRect: and so it’ll always be correct
>
> I don’t recall Charles’s drawing code exactly, but I think this is just part of the solution. It’ll always be correct for the part of the view being drawn, but there’s no guarantee that the whole view will be redrawn if the relationship between the bounds origin and the circle changes. I think Charles still needs something to force redrawing of the whole view when the view geometry changes.

By default -setNeedsDisplay will dirty the entire view for redraw. -setNeedsDisplayInRect: can be used for partial updates, but typically you will call that directly. If you always draw inside of the whole bounds of the view however, you are generally insulated from origin changes (as either setNeedsDisplay method should do the right thing in these circumstances).

>
> Of course, if the view geometry never changes, or the relationship of the circle to the bounds origin never changes, then I think the forced redrawing isn’t necessary.
>

--
David Duncan

_______________________________________________

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: 
 >UI to allow user to scale and crop image within a circle (From: Charles Jenkins <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Charles Jenkins <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Quincey Morris <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Charles Jenkins <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Quincey Morris <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Charles Jenkins <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Quincey Morris <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: David Duncan <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Charles Jenkins <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Graham Cox <email@hidden>)
 >Re: UI to allow user to scale and crop image within a circle (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: UI to allow user to scale and crop image within a circle
  • Next by Date: Re: ARC code in a non ARC app. iOS
  • Previous by thread: Re: UI to allow user to scale and crop image within a circle
  • Next by thread: Best way to fade in full-screen view controller on iOS?
  • Index(es):
    • Date
    • Thread