当它被缩放时,UIImage总是变得模糊不清.如果让它保持清晰,我该怎么办?
- (UIImage *)rescaleImageToSize:(CGSize)size {
CGRect rect = CGRectMake(0.0, 0.0, size.width, size.height);
UIGraphicsBeginImageContext(rect.size);
[self drawInRect:rect]; // scales image to rect
UIImage *resImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return resImage;
}
Run Code Online (Sandbox Code Playgroud) 最近,我正在看aurioTouch.但我无法理解这句话:
OSStatus err = AudioUnitRender (THIS-> rioUnit, ioActionFlags, inTimeStamp, 1, inNumberFrames, ioData);
Run Code Online (Sandbox Code Playgroud)
根据apple documentaion解释:启动音频单元的渲染周期.但我觉得很暧昧.怎么办?