I would like to use the functionality of PixelCopy
(Image
to bitmap) on pre-Nougat devices but unfortunately it is not available. Is there some compat method available which does the same thing? I'm thinking that if it is not available, I will have to use reflection to get the ThreadedRenderer
and reimplement PixelCopy that way. Has anyone thought of any better solutions?
Edit: This is different than the possible duplicate because it is about general Image
not SurfaceView
, so canvas solutions aren't relevant to it.