2012-12-09 2 views

답변

0

아파치는 EXIF ​​태그 읽기 및 쓰기를위한 commons 프로젝트를 가지고 있습니다 : Sanselan. 여기에는 다음과 유사한 샘플 코드가 포함되어 있습니다.

 { 
      // Example of how to add/update GPS info to output set. 

      // New York City 
      double longitude = -74.0; // 74 degrees W (in Degrees East) 
      double latitude = 40 + 43/60.0; // 40 degrees N (in Degrees 
      // North) 

      outputSet.setGPSInDegrees(longitude, latitude); 
     } 

     // printTagValue(jpegMetadata, TiffConstants.TIFF_TAG_DATE_TIME); 

     os = new FileOutputStream(dst); 
     os = new BufferedOutputStream(os); 

     new ExifRewriter().updateExifMetadataLossless(jpegImageFile, os, 
       outputSet); 

     os.close(); 
     os = null; 
+0

GPS에서 위치를 설정해야하는 경우 어떻게해야합니까? –

+0

http://developer.android.com/training/basics/location/currentlocation.html – 323go

관련 문제