首页 > 代码库 > 项目描述

项目描述

1. image filter :

    项目描述:  Image filtering allows you to apply various effects on photos. after open the app, customer can pick a image from Sd card or 

internal phone storage and show up to app‘s interface. apply effects on image byClick on the slide‘s effects button.  save.

Challenges:

http://developer.android.com/training/displaying-bitmaps/load-bitmap.html

 you are working with limited memory, ideally you only want to load a lower resolution version in memory. The lower resolution version should match the size of the UI component that displays it

out of memory issue while loading an image to a Bitmap object and image filtering operation.

image ‘s Pixels is too large fro current phone‘s cpu me

 

Read Bitmap Dimensions and Type

Load a Scaled Down Version into Memory

  • Estimated memory usage of loading the full image in memory.
  • Amount of memory you are willing to commit to loading this image given any other memory requirements of your application.
  • Dimensions of the target ImageView or UI component that the image is to be loaded into.
  • Screen size and density of the current device.

 

项目描述