Exemplo n.º 1
0
 // Flush buffered data to the file.
 public static bool TIFFFlushData(TIFF tif)
 {
     if ((tif.tif_flags & TIF_FLAGS.TIFF_BEENWRITING) == 0)
     {
         return(false);
     }
     if ((tif.tif_flags & TIF_FLAGS.TIFF_POSTENCODE) != 0)
     {
         tif.tif_flags &= ~TIF_FLAGS.TIFF_POSTENCODE;
         if (!tif.tif_postencode(tif))
         {
             return(false);
         }
     }
     return(TIFFFlushData1(tif));
 }