- (UIImage*) imageWithFrame:(CGRect)frame alphe:(CGFloat)alphe {
frame =CGRectMake(0,0, frame.size.width, frame.size.height);
UIColor*redColor = [UIColorwhiteColor];
UIGraphicsBeginImageContext(frame.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [redColor CGColor]);
CGContextFillRect(context, frame);
UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
returntheImage;
}
网友评论