Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-12-2009, 02:38 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Location: Singapore
Posts: 91
Default Spliting up a UIImage

I have a large UIImage and I was wondering if it is possible to use code to split that UIImage into an array of smaller UIImages?

What are the functions and methods that I should use for this?
__________________
Try out my latest game Piecehunters Lite for free

Else get the paid version for $1.99 cents and you can bring your progress from the lite version over to the premium version
gibtang is offline   Reply With Quote
Old 06-15-2009, 05:44 PM   #2 (permalink)
http://app-apps.com
 
Join Date: Jun 2009
Location: Los Angeles, CA
Posts: 445
Default

Yes you can..very common for games to do this. The google map app also does it. Your best bet for a better understanding is to pick up a good book on creating iphone or cocoa games. They will certainly cover it. To do it you will be using CGContextRef, CGContextClipToRect, and CGContextDrawTiledImage.
MichaelE is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,311
Threads: 89,034
Posts: 379,818
Top Poster: BrianSlick (7,086)
Welcome to our newest member, ramonpadillas
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:13 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0