Fix sd_animatedImageByScalingAndCroppingToSize:

This commit is contained in:
Atsushi Kataoka 2015-09-02 11:12:59 +09:00
parent 5a5c65d799
commit 46c59183aa
1 changed files with 5 additions and 5 deletions

View File

@ -141,16 +141,16 @@
NSMutableArray *scaledImages = [NSMutableArray array];
for (UIImage *image in self.images) {
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
for (UIImage *image in self.images) {
[image drawInRect:CGRectMake(thumbnailPoint.x, thumbnailPoint.y, scaledSize.width, scaledSize.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
[scaledImages addObject:newImage];
}
UIGraphicsEndImageContext();
}
return [UIImage animatedImageWithImages:scaledImages duration:self.duration];
}