예제 #1
0
 public void release() {
   mSubjectView = null;
   if (mImageConfuser != null) {
     mImageConfuser.recycle();
     mImageConfuser.clear();
   }
 }
예제 #2
0
    // jack@150623
    private void confuseSelectContent() {
      if (mImageConfuser == null) return;

      Bitmap rtnBitmap = null;

      ImageConfuser confuser = mImageConfuser;
      ArrayList<ContentSelector> selectorList =
          new ArrayList<ContentSelector>(mSubjectView.mContentSelectorMap.values());

      for (int i = 0; i < selectorList.size(); i++) {
        ContentSelector selector = selectorList.get(i);
        Bitmap image = getSelectedContentBitmap(selector.Key, selector.Value);
        if (image != null) confuser.setImage(selector.Hierarchy, image);
      }

      rtnBitmap = confuser.confuse();
      confuser.clear();

      onContentConfused(selectorList, rtnBitmap);
    }
예제 #3
0
 public void setConfuseAutoRecyclable(boolean isAuto) {
   if (mImageConfuser != null) mImageConfuser.setRecycleAfterConfuse(isAuto);
 }