diff options
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm')
-rwxr-xr-x | example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm b/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm index b60e91c7..dd2b36ee 100755 --- a/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm +++ b/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm @@ -251,15 +251,14 @@ typedef void (^DownloadCallback)(NSError * error); [info setObject:(id) kCFBooleanTrue forKey:(id) kCGImageSourceCreateThumbnailFromImageAlways]; [info setObject:(id) [NSNumber numberWithFloat:(float) IMAGE_PREVIEW_WIDTH] forKey:(id) kCGImageSourceThumbnailMaxPixelSize]; thumbnail = CGImageSourceCreateThumbnailAtIndex(imageSource, 0, (__bridge CFDictionaryRef) info); - //[info release]; CGImageDestinationRef destination; NSMutableData * destData = [NSMutableData data]; destination = CGImageDestinationCreateWithData((__bridge CFMutableDataRef) destData, - + (CFStringRef) @"public.jpeg", - + 1, NULL); - + (CFStringRef) @"public.jpeg", + 1, NULL); + CGImageDestinationAddImage(destination, thumbnail, NULL); CGImageDestinationFinalize(destination); |