BitmapFactory

2016-10-09  本文已影响38人  linheimx

Options

1. inBitmap

重用这个bitmap

配合 BitmapFactory 使用

Usage with BitmapFactory

配合 BitmapRegionDecoder 使用

Usage with BitmapRegionDecoder
BitmapRegionDecoder will draw its requested content into the Bitmap provided, clipping if the output content size (post scaling) is larger than the provided Bitmap. The provided Bitmap's width, height, and Bitmap.Config will not be changed.
BitmapRegionDecoder support for inBitmap was introduced in android.os.Build.VERSION_CODES.JELLY_BEAN. All formats supported by BitmapRegionDecoder support Bitmap reuse via inBitmap.

上一篇下一篇

猜你喜欢

热点阅读