Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.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, 01:38 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Location: Singapore
Posts: 88
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, 04:44 PM   #2 (permalink)
/.
 
Join Date: Jun 2009
Location: Los Angeles, CA
Posts: 111
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.
harkonian 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


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 254
16 members and 238 guests
dbonneville, FANFAN, harrytheshark, iruirc, Jompe71, learnSomething, nico.overbeeke, Rainer, robertyang999, Rossco, Saurman, schoash, sheonlee, SimonHodgkiss, sourman, yahya.sadiiq
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,282
Threads: 39,073
Posts: 171,340
Top Poster: smasher (2,575)
Welcome to our newest member, FANFAN
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0