How to blit an ever-varying int array at animation speed to the screen in Android
I have a Java app that depends on 开发者_如何学JAVAMemoryImageSource with Image to copy the contents of an int array of changing RGBA data to a window at animation speed (~20fps). I'm trying to port this app to Android. What would be the closest equivalent to this in Android's API? If it helps explain, i used *DIBSection*s in WIndows to do the same thing.
It would be better to use android's 2D Graphics library to draw an animated image. I think making the RGBA data a string, and then making it a color drawable, which is animated using an animation drawable.
精彩评论