Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

void TagLib::Jpeg::File::WriteMetadata (  )  [inline, private]

Writes the metadata back to file. All metadata is stored in the first segments of the file.

Definition at line 498 of file File.cs.

References TagLib::ByteVector::Add().

                  // first render all metadata segments to a ByteVector before the
                  // file is touched ...
                  ByteVector data = new ByteVector ();

                  // existing jfif header is retained, otherwise a standard one
                  // is created
                  if (jfif_header != null)
                        data.Add (jfif_header);
                        data.Add (BASIC_JFIF_HEADER);

                  data.Add (RenderExifSegment ());
                  data.Add (RenderXMPSegment ());
                  data.Add (RenderCOMSegment ());

                  SaveMetadata (data, 2);

Generated by  Doxygen 1.6.0   Back to index