Esempio n. 1
0
 public View getView(int position, View convertView, ViewGroup parent) {
   if (convertView == null) {
     LayoutInflater inflater = LayoutInflater.from(context);
     convertView = inflater.inflate(R.layout.tool_photothumbnailitem, null);
     TextView tv_name = (TextView) convertView.findViewById(R.id.tool_photothumbnailitem_textView);
     ImageView ig_image =
         (ImageView) convertView.findViewById(R.id.tool_photothumbnailitem_textView);
     tv_name.setText(this.imageNames[position]);
     BitmapHelper helper = new BitmapHelper(ImageThumbPath[position]);
     ig_image.setImageBitmap(ModifyBitmapSize(helper.getBitmap()));
   }
   return convertView;
 }
Esempio n. 2
0
        @Override
        public void onClick(View v) {
          String path = GlobleParam.Create().getBinaryTestImagePath();

          if (DirectoryUtils.CreateorOpenDirectory(new File(path), path)) {
            String name = "BT_" + centerF.toString() + "_" + binaryvalue;
            boolean result =
                BitmapHelper.SaveintoFile(
                    BitmapHelper_CV.MatToBitmap(mImageMat), path, name, CompressFormat.JPEG);
            ToastHelper.ShowSaveStateToast(ABinaryTest.this, result);
          } else {
            ToastHelper.ShowNotFoundFileToast(ABinaryTest.this);
          }
        }