Package org.apache.sanselan.formats.tiff.write

Examples of org.apache.sanselan.formats.tiff.write.TiffOutputDirectory.removeField()


                        outputSet.byteOrder, new Double(0.3));
                TiffOutputDirectory exifDirectory = outputSet
                        .getOrCreateExifDirectory();
                // make sure to remove old value if present (this method will
                // not fail if the tag does not exist).
                exifDirectory
                        .removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
                exifDirectory.add(aperture);
            }

            {
View Full Code Here


                // the constants in ExifTagConstants.java or go to Phil Harvey's
                // EXIF website.
                TiffOutputDirectory exifDirectory = outputSet
                        .getExifDirectory();
                if (null != exifDirectory)
                    exifDirectory
                            .removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
            }

            os = new FileOutputStream(dst);
            os = new BufferedOutputStream(os);
View Full Code Here

            /* version */
            field = makeField(
                TiffConstants.GPS_TAG_GPS_VERSION_ID,
                new byte[]{
                (byte) 2, (byte) 2, (byte) 0, (byte) 0});
            gpsIfd.removeField(TiffConstants.GPS_TAG_GPS_VERSION_ID);
            gpsIfd.add(field);

            /* map datum */
            //System.err.println("Writing map datum.");
            field = makeField(
View Full Code Here

            /* map datum */
            //System.err.println("Writing map datum.");
            field = makeField(
                TiffConstants.GPS_TAG_GPS_MAP_DATUM,
                byteOrder, "WGS-84");
            gpsIfd.removeField(TiffConstants.GPS_TAG_GPS_MAP_DATUM);
            gpsIfd.add(field);

            /* elevation */
            if(wpt.getEle() != null){
                //System.err.println("Writing ele ref.");
View Full Code Here

                    TiffConstants.FIELD_TYPE_DESCRIPTION_BYTE,
                    1,
                    TiffConstants.EXIF_DIRECTORY_GPS);
                field = TiffOutputField.create(
                    tag, byteOrder, eleref);
                gpsIfd.removeField(TiffConstants.GPS_TAG_GPS_ALTITUDE_REF);
                gpsIfd.add(field);

                //System.err.println("Writing ele.");
                // use custom tag info because GPS_TAG_GPS_ALTITUDE_REF has length -1
                tag  = new TagInfo(
View Full Code Here

                    1,
                    TiffConstants.EXIF_DIRECTORY_GPS);
                field = TiffOutputField.create(
                    tag,
                    byteOrder, new Double(ele));
                gpsIfd.removeField(TiffConstants.GPS_TAG_GPS_ALTITUDE);
                gpsIfd.add(field);
            }

            /* dateTime */
            //System.err.println("Writing date/time.");
View Full Code Here

                    byteOrder, new Double[]{
                        new Double(cal.get(Calendar.HOUR_OF_DAY)),
                        new Double(cal.get(Calendar.MINUTE)),
                        new Double(cal.get(Calendar.SECOND))
                    });
                gpsIfd.removeField(TiffConstants.GPS_TAG_GPS_TIME_STAMP);
                gpsIfd.add(field);

                field = makeField(
                    TiffConstants.GPS_TAG_GPS_DATE_STAMP,
                    byteOrder,
View Full Code Here

                field = makeField(
                    TiffConstants.GPS_TAG_GPS_DATE_STAMP,
                    byteOrder,
                    AbstractExecExifWriter.formatAsExifDate(dateTime));
                gpsIfd.removeField(TiffConstants.GPS_TAG_GPS_DATE_STAMP);
                gpsIfd.add(field);
            }
            return writeExif(jpeg, outputSet);
        } catch (Exception ex) {
            System.err.println(ex);
View Full Code Here

            outputSet.byteOrder, new Double(0.3));
        TiffOutputDirectory exifDirectory = outputSet
            .getOrCreateExifDirectory();
        // make sure to remove old value if present (this method will
        // not fail if the tag does not exist).
        exifDirectory
            .removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        exifDirectory.add(aperture);
      }

      {
View Full Code Here

        // the constants in ExifTagConstants.java or go to Phil Harvey's
        // EXIF website.
        TiffOutputDirectory exifDirectory = outputSet
            .getExifDirectory();
        if (null != exifDirectory)
          exifDirectory
              .removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
      }

      os = new FileOutputStream(dst);
      os = new BufferedOutputStream(os);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.