internal bool setCompressionScheme(Compression scheme)
{
TiffCodec c = FindCodec(scheme);
if (c == null)
{
/*
* Don't treat an unknown compression scheme as an error.
* This permits applications to open files with data that
* the library does not have builtin support for, but which
* may still be meaningful.
*/
c = m_builtInCodecs[0];
}
m_decodestatus = c.CanDecode;
m_flags &= ~(TiffFlags.NOBITREV | TiffFlags.NOREADRAW);
m_currentCodec = c;
return(c.Init());
}