开发者

How to blit an ever-varying int array at animation speed to the screen in Android

开发者 https://www.devze.com 2023-02-21 10:32 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消