HomeStoreForumsWikiiPhone Native AppsiPhone Apps modmyifone Downloadsmodmyifone Links





Free 3G iPhone Contest!
Unlocked Cell Phones

Go Back   Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi | Work Opportunities at MMi - updated 7/16/08

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

3G iPhone Local Launch Parties | 1.1.4 Unlock|Jailbreak OS X / Win | Win Free 3G iPhones!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2008, 05:02 PM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Cheapest way of creating a composite image?

I'm trying to create an image in code made up of a number of smaller images.

The usual method I have been using to do this is to instantiate a series of UIImageViews, and then call 'addSubview' to add them all to a main UIView.

However I get the impression this is not the fastest implementation. If the overall UIView has a large height and width, I am experiencing some framerate issues when dragging it around the screen.

I'd like to play around with different implementations if possible. One idea that comes to mind is to see if there's any low-level way of creating an image in memory from smaller images. If I had something like that, I could simple generate an in-memory composite image, and then assign it to one single UIImageView.

If any of you out there have done this, please let me know. Additionally, if you think this approach would not gain me significant performance, I'd also love to hear about it and any other ways to accomplish what I'm trying to do.

Thanks!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 03-04-2008, 05:21 PM
Green Apple
 
Join Date: Sep 2007
Posts: 41
Thanks: 0
Thanked 9 Times in 5 Posts

I think there are a number of ways to do this. Maybe have a look at NES.app source, I think they do a lot of work with small images in multi-parts. Maybe not exactly what you want though.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 03-04-2008, 08:52 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 200
Thanks: 1
Thanked 21 Times in 20 Posts

If the image isn't going to be doing a lot of changing, then maybe you should use the CGContext stuff...it seems that Core Graphics on the Mac isn't that different from the iPhone version...there should be some efficient code for this on a Cocoa site somewhere.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


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

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - iPhone | iPod touch forums, news, themes, apps, games, unlock, jailbreak community - ModMyiFone.com RSS Feeds - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 06:58 PM. Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly