Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuImage::get_anno ( void   )  const

Returns a pointer to a ByteStream containing all the annotation chunks collected so far for this image. Individual chunks can be retrieved using {IFFByteStream}. Returns NULL if no chunks have been collected yet.

Definition at line 223 of file DjVuImage.cpp.

References ByteStream::create(), ByteStream::seek(), and ByteStream::size().

Referenced by get_decoded_anno(), and writeXML().

{
   GP<ByteStream> out = ByteStream::create();
   ByteStream &mbs = *out;
   if (file) 
   {
     file->merge_anno(mbs);
   }
   mbs.seek(0);
   if(!mbs.size())
   {
     out=0;
   }
   return out;
}


Generated by  Doxygen 1.6.0   Back to index