第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

從UIImage獲取Exif數(shù)據(jù) - UIImagePickerController

從UIImage獲取Exif數(shù)據(jù) - UIImagePickerController

慕少森 2019-08-06 15:12:34
從UIImage獲取Exif數(shù)據(jù) - UIImagePickerController 我們?nèi)绾螐腢IImagePickerController中選擇UIImage獲取Exif信息?我為此做了很多研發(fā)并獲得了很多回復(fù),但仍未能實現(xiàn)這一點。我已經(jīng)完成了這個和這個鏈接請幫我解決這個問題。提前致謝..
查看完整描述

3 回答

?
慕的地6264312

TA貢獻1817條經(jīng)驗 獲得超6個贊


這些答案看起來都非常復(fù)雜。如果圖像已保存到相機膠卷,并且您有ALAsset(來自UIImagePicker或ALAssetLibrary),您可以獲得如下元數(shù)據(jù):


asset.defaultRepresentation.metadata;

如果要將圖像從相機膠卷保存到另一個位置(例如在Sandbox / Documents中),只需執(zhí)行以下操作:


CGImageDestinationRef imageDestinationRef   = CGImageDestinationCreateWithURL((__bridge CFURLRef)urlToSaveTo, kUTTypeJPEG, 1, NULL);

CFDictionaryRef imagePropertiesRef          = (__bridge CFDictionaryRef)asset.defaultRepresentation.metadata;


CGImageDestinationAddImage(imageDestinationRef, asset.defaultRepresentation.fullResolutionImage, imagePropertiesRef);

if (!CGImageDestinationFinalize(imageDestinationRef)) NSLog(@"Failed to copy photo on save to %@", urlToSaveTo);


CFRelease(imageDestinationRef);


查看完整回答
反對 回復(fù) 2019-08-06
  • 3 回答
  • 0 關(guān)注
  • 779 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號