开发者

Can I use CGDataProviderCreateSequential() to read in the data of a CGImageRef sequentially?

Is it possible to use CGDataProviderCreateSequential() and CGDataProviderSequential开发者_运维百科Callbacks to read the data in from a CGImageRef sequentially?

Currently I use CGDataProviderCopyData to get the data but that reads in all the data at once and eats up too much memory:

CFDataRef dataref = CGDataProviderCopyData(CGImageGetDataProvider(imgRef));

Or is there any other way to sequentially read in the bytes of a cgimageref?


You can find a very tidy example of direct byte access for CGImageRef in the answer to this: Getting the average RGB color of a CGImageRef in iOS

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜