public static final class

HtcUnionContact.Thumbnails

extends Object
implements BaseColumns
java.lang.Object
   ↳ android.provider.HtcUnionContact.Thumbnails

Summary

[Expand]
Inherited Constants
From interface android.provider.BaseColumns
Public Methods
static Bitmap getCenterCroppedBitmap(byte[] data, int targetSize)
Create a bitmap which is extracted from the center of original image
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Bitmap getCenterCroppedBitmap (byte[] data, int targetSize)

Create a bitmap which is extracted from the center of original image

Parameters
data The source image data
targetSize The target size
Returns
  • The result image. It may be null if create fail. Caller have to recycle the result image by him-self