Android开发:用getDrawingCache方法获取ImageView中的图(4)

                                   }

                                   catch (FileNotFoundException e)

                                   {

                                          e.printStackTrace();

                                   }

           

                                   obmp.compress(CompressFormat.PNG, 100, m_fileOutPutStream);

           

                                   try

                                   {

                                             m_fileOutPutStream.flush();

                                             m_fileOutPutStream.close();

                                   }

                                   catch (IOException e)

                                   {

                                             e.printStackTrace();

                                   }

           

                                   Intent intent = new Intent(this, TakePicture.class);

                                   startActivityForResult(intent, 1);

                        }

                       break;

           case R.id.btn_photo:

                    if(event.getAction() ==MotionEvent.ACTION_DOWN)

                   {

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwzfsz.html