• 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: [iphone] split an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iphone] split an image


  • Subject: Re: [iphone] split an image
  • From: David Duncan <email@hidden>
  • Date: Tue, 4 Aug 2009 13:37:05 -0700

On Aug 4, 2009, at 1:28 PM, Dragos Ionel wrote:

I am trying to create a puzzle from an image.

Divide the image in multiple parts, let's say 4x4=16, mix them and then ask the user to move them back in the original spots.


Presumably you have a view for each part of the puzzle, in which case the simplest solution is to have each view draw the entire image, but offset what part of the image is actually drawn into the view. For example, you might have a 200x200 image and 16 50x50 views. Each view would then draw the entire image into a 200x200 rectangle, but at different offset into its coordinate system.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: 
 >[iphone] split an image (From: Dragos Ionel <email@hidden>)
 >Re: [iphone] split an image (From: David Duncan <email@hidden>)
 >Re: [iphone] split an image (From: Dragos Ionel <email@hidden>)

  • Prev by Date: Re: [iphone] split an image
  • Next by Date: Re: [iPhone] networking
  • Previous by thread: Re: [iphone] split an image
  • Next by thread: Re: [iphone] split an image
  • Index(es):
    • Date
    • Thread