0

Is it possible to use CGDataProviderCreateSequential() and CGDataProviderSequentialCallbacks 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?

Shizam
  • 9,627
  • 8
  • 51
  • 82

1 Answers1

-1

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

Community
  • 1
  • 1
Andy Milburn
  • 722
  • 6
  • 13