दस्तावेज़ फ़ोल्डर में फ़ोटो सहेजते समय छवि का आकार कैसे बदलें ???UIImagePickerController का उपयोग करने के बाद छवि आकार को कैसे समायोजित करें एक तस्वीर लेते हैं?
इस प्रकार मैं आईफोन में एक छवि को सहेजता हूं।
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *imageFile = nil;
NSString *name_png = [NSString stringWithFormat:@"%@.png",photoName];
imageFile = [documentsDirectory stringByAppendingPathComponent:name_png];
[UIImagePNGRepresentation(self.theImageView.image) writeToFile:imageFile atomically:YES];
इसे मूल आकार से 200 x 200 पिक्सेल में कैसे आकार दें?
या क्या मैं इसे आकार देने से छवि फ़ाइल लोड कर सकता हूं?
असल में, मैं कई छवियों के साथ एक कवर प्रवाह बना रहा था, और छवि कैमरे से थी।
मुझे कवर प्रवाह नमूना मिल सकता है, लेकिन जब मैं छवि लोड करता हूं, तो यह आईफोन स्क्रीन से भरा होता है।
कोई छोटी कवर छवि नहीं है।