¡@

Home 

2014/10/15 ¤U¤È 10:04:58

iphone Programming Glossary: centerright

Drawing waveform with AVAssetReader

http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader

context 1.0 float halfGraphHeight imageHeight 2 float channelCount float centerLeft halfGraphHeight float centerRight halfGraphHeight 3 float sampleAdjustmentFactor imageHeight float channelCount float normalizeMax for NSInteger intSample.. 2 SInt16 right samples float pixels float right pixels sampleAdjustmentFactor CGContextMoveToPoint context intSample centerRight pixels CGContextAddLineToPoint context intSample centerRight pixels CGContextSetStrokeColorWithColor context rightcolor.. CGContextMoveToPoint context intSample centerRight pixels CGContextAddLineToPoint context intSample centerRight pixels CGContextSetStrokeColorWithColor context rightcolor CGContextStrokePath context Create new image UIImage newImage..