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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to