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-09-2009, 08:53 PM   #11 (permalink)
DenVog
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by brandons View Post
Yes, this would be second generation since its not using the original image data but creating a whole new image from the view.
Thanks for the clarification brandons. I'm not using any works of art, but just wanted to make sure I understood what is happening.

What I might do, if I can figure it out, is show a preview of the image on the screen in a view but then tell the button to save the original file. It's not so much that the quality has to be great, but I will have a "save" button on the screen and I don't want it included as part of the image.

I thought the follow would get it, but does not.
Code:
- (IBAction)save:(id)sender {
[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image" ofType:@"png"]];
UIImageWriteToSavedPhotosAlbum(UIGraphicsGetImageFromCurrentImageContext(), nil, nil, nil);
UIGraphicsEndImageContext();	
}
DenVog is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,858
Threads: 89,223
Posts: 380,683
Top Poster: BrianSlick (7,129)
Welcome to our newest member, kimberloden
Powered by vBadvanced CMPS v3.1.0

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