O'Reilly logo

Java for Android, Second Edition by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 34

Bitmap Processing

With the Android Bitmap API you can manipulate images in JPG, PNG or GIF format, such as by changing the color or the opacity of each pixel in the image. In addition, you can use the API to down-sample a large image to save memory. As such, knowing how to use this API is useful, even when you are not writing a photo editor or an image processing application.

This chapter explains how to work with bitmaps and provides an example.

Overview

A bitmap is an image file format that can store digital images independently of the display device. A bitmap simply means a map of bits. Today the term also includes other formats that support lossy and lossless compression, such as JPEG, GIF and PNG. GIF and PNG support ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required