Kirill Grouchnikov
11/17/2020, 5:27 AMImageAsset
as AndroidImageAsset
and how it's painted in AndroidCanvas.drawImage
- where it is explicitly checked to be an AndroidImageAsset
. So even though Canvas.drawImage
accepts ImageAsset
, it's going to accept a very specific implementation of that interface - one on Android and one on desktop. Is there a way to create an ImageAsset
at runtime dynamically? Not from a resource, not from a file, but by populating each pixel individually as an int array, and then "wrapping" that array as an implementation of ImageAsset
that is platform agnostic?Nader Jawad
11/17/2020, 4:30 PMKirill Grouchnikov
11/17/2020, 4:41 PM