BitMiracle.LibTiff.Classic.Internal.JpegCodec.JPEGResetUpsampled C# (CSharp) Метод

JPEGResetUpsampled() публичный Метод

public JPEGResetUpsampled ( ) : void
Результат void
        public void JPEGResetUpsampled()
        {
            /*
            * Mark whether returned data is up-sampled or not so TIFFStripSize
            * and TIFFTileSize return values that reflect the true amount of
            * data.
            */
            m_tif.m_flags &= ~TiffFlags.UPSAMPLED;
            if (m_tif.m_dir.td_planarconfig == PlanarConfig.CONTIG)
            {
                if (m_tif.m_dir.td_photometric == Photometric.YCBCR && m_jpegcolormode == JpegColorMode.RGB)
                    m_tif.m_flags |= TiffFlags.UPSAMPLED;
            }

            /*
            * Must recalculate cached tile size in case sampling state changed.
            * Should we really be doing this now if image size isn't set?
            */
            if (m_tif.m_tilesize > 0)
                m_tif.m_tilesize = m_tif.IsTiled() ? m_tif.TileSize() : -1;

            if (m_tif.m_scanlinesize > 0)
                m_tif.m_scanlinesize = m_tif.ScanlineSize();
        }