'Is it possible to create Image (android.media) from bitmap or byteBuffer in android?

If it is possible, please share the source code

Thank you in advance!



Solution 1:[1]

Image is an abstract class. You never directly have an Image class, you always have some subclass. Those subclasses are just generally hidden.

So sure, you can do this. You'd just have to create your own Image subclass and implement the class interface yourself. If you're doing that, you can have whatever constructors and source of image data you want.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gabe Sechan