How to draw a BufferedImage in android

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

How to draw a BufferedImage in android

Postby Spomega » Tue Jul 06, 2010 10:31 am

Hi guys! Am developing a remote desktop administration tool for the android and want to know how I can draw captured BufferedImages on the android.
The application consists of a server(running on the PC) and a client running on the android phone.
The server captures the PC's screen at regular intervals and sends them to the client. I now want to know how I can draw these BufferedImages on the android and also update it in realtime.
Hoping to get quick replies from u guys.
Thanks!
Spomega
Freshman
Freshman
 
Posts: 6
Joined: Sat Jun 26, 2010 1:20 pm

Top

Re: How to draw a BufferedImage in android

Postby RedToasty » Thu Jul 08, 2010 9:59 pm

Does this need to update in realtime?

The only way I know would be to loop through the BufferedImage (getWidth/getHeight) and read the pixels into a Bitmap, bind and render as normal. I guess you only need every "nth" pixel as you'll be viewing the buffer massively scaled down.
RedToasty
Freshman
Freshman
 
Posts: 9
Joined: Thu Jun 17, 2010 7:27 pm

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest