Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KardelSharpeye

macrumors member
Original poster
Apr 28, 2009
56
0
hello,
does anyone know how to save or export an image to file on iphone after using the camera to take the picture?
 
hello,
does anyone know how to save or export an image to file on iphone after using the camera to take the picture?

I'm not quite sure what you mean.
Do you mean how to do that programatically? I think that is done automatically - the image is saved to your camera roll.

Or do you mean in general (in that case this is the wrong forum). If so, simply connect the iphone to your pc and it will be recognized as a camera ^^
 
hi BlackWolf,
i was just wondering if i can make a simple program in iPhone that would take a picture using the iphone and then i add smaller images(jpg) files on top of it and save it to a new jpg file...i am not sure how this is done...but i see something like UIImageRepresentation for PNG or JPEG. any advice will greatly be appreciated.
 
hi BlackWolf,
i was just wondering if i can make a simple program in iPhone that would take a picture using the iphone and then i add smaller images(jpg) files on top of it and save it to a new jpg file...i am not sure how this is done...but i see something like UIImageRepresentation for PNG or JPEG. any advice will greatly be appreciated.

This might help:
//You need to have imageview set up as the image returned from the camera first before doing this;
- (IBAction)saveImage {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:mad:"savedImage.png"];
UIImage *image = imageView.image; // imageView is my image from camera
NSData *imageData = UIImagePNGRepresentation(image);
[imageData writeToFile:savedImagePath atomically:NO];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.