Android Tutorial

Showing posts with label Canvas. Show all posts
Showing posts with label Canvas. Show all posts

7.13.2011

Converting Views to Bitmap Images in Android

When working with applications, developers can sometimes run in to a situation where they would like to create a view and then convert it to a Bitmap to work with it as an image. Learn how in this easy to follow guide.

In some applications, we would like to create a View with texts, images, and more view-elements and convert it to a Bitmap. Why? Well, you don't know until you need it, but imagine that you are working with OpenGL, you want to add textures to a OpenGL object, and you want these textures view-like. This is just an example, but I'm positive that more functionality will come to your mind while you are developing in Android.

Short introduction to Bitmap and Canvas