@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.abinarytest); Initliazation(); String path = SystemUtils.ConvetThumbnailPathToImage(GlobleParam.Create().getCurrentImagePath()); centerF = GlobleParam.Create().getPoints().get(0); bitmapHelper_CV = new BitmapHelper_CV(path); CreateBinaryImage(binaryvalue); }
@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); } }