Android:simulating 1-bit display
Posted
by
user1681805
on Stack Overflow
See other posts from Stack Overflow
or by user1681805
Published on 2013-10-23T03:37:58Z
Indexed on
2013/10/23
3:53 UTC
Read the original article
Hit count: 150
android
|drawbitmap
I'm new to Android,trying to build a simple game which use 1-bit black and white display.the screen dimension is 160 * 80,that is 12800 pixels.I created a byte array for the "VRAM",so each time it draws,it first checks the array.
The thing is that I am not drawing a point or rectangle for each pixel,I'm using 2 bitmaps(ARGB_4444,I have to use alpha channel,because of shadow effect),1 for positive and 1 for negative.So I called 12800 times drawBitmap() in the surfaceView's Draw method.I know that's silly...But even for openGL,12800 quards won't be that fast right?
Sorry..I cannot post imgs.the link of screenshot:http://i1014.photobucket.com/albums/af267/baininja/Screenshot_2013-10-22-01-05-36_zps91dbcdef.png
should i totally give up this and draw points on a 160*80 bitmap then scale it to intented size?But that loses the visual effects.
© Stack Overflow or respective owner