Re: [iphone] split an image
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