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

View Single Post
Old 03-08-2009, 02:26 PM   #7 (permalink)
brandons
Taking Baby Steps...
 
Join Date: Jan 2009
Location: Denver
Posts: 37
Default

Quote:
Originally Posted by DenVog View Post
I am curious how they are saving the image. Are they able to save the file directly from the application? I am guessing so, since there is a "save" button on top of the image in the application but it doesn't show up in the graphic that ends up in the Camera Roll. I have not seen how to save directly, but if they were saving the View, that "save" button would show up as well and the image quality would be second generation. Right?
I'm doing this in my app - maybe not the best way to do it, but you get the idea:

Code:
[appDelegate.rootViewController.view bringSubviewToFront:appDelegate.rootViewController.imageViewController.view];
CGSize size = CGSizeMake(320.0,480.0);
	UIGraphicsBeginImageContext(size);
	[appDelegate.rootViewController.imageViewController.view.superview.layer renderInContext:UIGraphicsGetCurrentContext()];
	imageSave = UIGraphicsGetImageFromCurrentImageContext();
	UIGraphicsEndImageContext();
Then you want to check out - UIImageWriteToSavedPhotosAlbum

PS - if anyone can tell me how I would get to that layer in less steps I would appreciate it

Last edited by brandons; 03-08-2009 at 02:31 PM.
brandons is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,825
Threads: 89,207
Posts: 380,637
Top Poster: BrianSlick (7,129)
Welcome to our newest member, srishtimehta
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:40 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.