AudioPlot Frame で波形を表示することはできますが、画像として取得することはできませんでした。EZAudioにはそのような方法がありますか?そして、どうすればそれを使用できますか?
1 に答える
1
EZAudio にはそのような方法はありません。Timからこのソリューション
を試すことができます(便宜上、以下にコピーします)。
#import "QuartzCore/QuartzCore.h" after you added the framework to your project. Then do:
UIGraphicsBeginImageContext(yourView.frame.size);
[[yourView layer] renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
// The result is *screenshot
于 2015-05-07T10:10:18.273 に答える