ios - How to get the Size (KB) of UIImage -
i getting image didfinishpickingmediawithinfo
.
uiimage *originalimage = (uiimage*)[info valueforkey:uiimagepickercontrolleroriginalimage];
i want size of image in kb.
uiimage *originalimage = (uiimage*)[info valueforkey:uiimagepickercontrolleroriginalimage]; nsdata *imgdata = uiimagejpegrepresentation(originalimage, 1); //1 represents quality of image. nslog(@"size of image(bytes):%d",[imgdata length]); originalimage = nil;
ios objective-c xcode uiimage
No comments:
Post a Comment