コード例 #1
0
ファイル: JpegErrorManager.cs プロジェクト: saik0/libtiff.net
        /*
         * Error handling routines (these replace corresponding
         * IJG routines).  These are used for both
         * compression and decompression.
         */
        public override void error_exit()
        {
            string buffer = format_message();

            Tiff.ErrorExt(m_sp.GetTiff(), m_sp.GetTiff().m_clientdata, "JPEGLib", "{0}", buffer); /* display the error message */

            // clean up LibJpeg.Net state
            m_sp.m_common.jpeg_abort();

            throw new Exception(buffer);
        }
コード例 #2
0
ファイル: JpegStdSource.cs プロジェクト: room-end/catalog
        public override void init_source()
        {
            Tiff tif = m_sp.GetTiff();

            initInternalBuffer(tif.m_rawdata, tif.m_rawcc);
        }