• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            tbyxyz

            統(tǒng)計

            留言簿

            閱讀排行榜

            評論排行榜

            不錯的C++圖像庫DevIL

            在使用CxImage顯示gif文件時,發(fā)現(xiàn)CxImage解一個299幀的gif動畫,在debug的時候花了好幾時秒,
            CxImage
            在處理gif時效率太低了。
            在網(wǎng)上搜索了一些,支持比較強(qiáng)的圖像庫:
            imageMagick--
            非常強(qiáng)大,在MFC中不好用,要把圖片顯示到窗口非常麻煩,至少目前沒有發(fā)現(xiàn)在Windows窗口中顯示的方法,還得加一堆亂七八糟的dll

            還是DevIL比較好使一點,感覺DevIL封裝的不是很好,全局變量太多,多線程操作極不安全。用C++在封裝一下,可能就好使一點。

            附:

            DevIL Feature List

            Supports loading of:

            • .bmp
            • .cut
            • .dcx
            • .dds
            • .ico
            • .gif
            • .jpg
            • .lbm
            • .lif
            • .mdl
            • .pcd
            • .pcx
            • .pic
            • .png
            • .pnm
            • .psd
            • .psp
            • .raw
            • .sgi
            • .tga
            • .tif
            • .wal
            • .act
            • .pal
            • .hdr
            • Doom graphics

            Supports saving of:

            • .bmp
            • .dds
            • .jpg
            • .pcx
            • .png
            • .pnm
            • .raw
            • .sgi
            • .tga
            • .tif
            • .pal
            • .hdr

            Library Features

            • Portable, supports Windows, Mac OS X and *nix.
            • OpenGL-style syntax.
            • Use of image names instead of ugly pointers.
            • Loading from files, file streams or memory "lumps".
            • Direct access to data through ilGetData() and ilSetData().
            • Support for luminance, rgb(a), bgr(a) and colour-indexed images.
            • Support for 3 different numbers of bits per channel.
            • Conversion between all formats and datatypes (including palettes).
            • User-defined automatic conversions if desired when loading images.
            • Automatic conversion when saving images if needed.
            • Automatic conversion of colour-indexed images to truecolour images if desired.
            • Controllable compression when saving.
            • Maintains a state stack that can be pushed and popped.
            • Full support for 3d texture volumes (3d images).
            • Validation of images.
            • Support for layers.
            • Support for mipmaps.
            • Support for animations.
            • User-specified clear colour.
            • Can load a default image if loading fails.
            • User-specified hints.
            • Use of key colours.
            • Support for overlaying an image on top of another.
            • Allows the user to specify their own loading and saving callbacks, even overriding the default ones.
            • Support for user-specified read and write functions.
            • Delphi support.
            • Visual Basic support.
            • Linux support.
            • Can pick and choose which features will be used to create smaller dlls.
            • Choose whether to use the Intel Jpeg Library or libjpeg.
            • A whole host of effects and filters to apply to images, such as embossing and edge detection.
            • Images can be resized or even be put on a larger background (enlarged canvas).
            • OpenGL, Allegro, Windows GDI and DirectX API support.

             


            posted on 2008-01-15 17:17 hosea 閱讀(4703) 評論(5)  編輯 收藏 引用

            評論

            # re: 不錯的C++圖像庫DevIL 2008-01-15 18:10 tmp

            比freeImage如何?  回復(fù)  更多評論   

            # re: 不錯的C++圖像庫DevIL 2008-01-15 18:32 鍵盤的詠嘆調(diào)

            在jpg上devil 不如freeimage,
            不過devil 更加偏重于游戲設(shè)計使用,
            包括保存圖片的字節(jié)序,接口設(shè)計上比freeimage更好用些  回復(fù)  更多評論   

            # re: 不錯的C++圖像庫DevIL 2008-01-16 22:37 空明流轉(zhuǎn)

            FreeImage很強(qiáng)大。
            而且FreeImage也非常好用。不存在接口不好用的問題啊。  回復(fù)  更多評論   

            # re: 不錯的C++圖像庫DevIL[未登錄] 2008-01-18 13:14 kevin

            ogre在紋理處理上已經(jīng)拋棄devil改用freeimage了  回復(fù)  更多評論   

            # re: 不錯的C++圖像庫DevIL 2011-10-26 16:10 程序員他爺爺!!

            @kevin
            不應(yīng)該是拋棄,而是和DevIL協(xié)議不同吧。。。
            要調(diào)查清楚哦~

            @鍵盤的詠嘆調(diào)
            對于Jpg來講,DevIL可以使用IJL,為什么說jpg上DevIL不如FreeImage呢??說不通啊。


            DevIL比較簡潔,C接口的。

            不用和別人比較什么,各有優(yōu)缺點,只是DevIL相對多些。哈哈

              回復(fù)  更多評論   


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            狠狠久久综合伊人不卡| 亚洲精品无码成人片久久| 久久免费视频一区| 伊人久久大香线蕉精品不卡| 亚洲午夜福利精品久久| 亚洲国产成人久久综合一区77| 亚洲精品高清国产一久久| 久久er国产精品免费观看8| 国产—久久香蕉国产线看观看| 久久亚洲精品无码VA大香大香| 久久人妻少妇嫩草AV蜜桃| 国产成人综合久久精品尤物| 少妇被又大又粗又爽毛片久久黑人| 色欲久久久天天天综合网精品| 国产精品久久久久久影院| 综合久久给合久久狠狠狠97色 | 久久国产精品无码HDAV | 久久午夜福利电影| 亚洲va久久久噜噜噜久久| 久久国产一区二区| 久久国产精品无码HDAV | 伊人久久大香线蕉av不变影院 | 久久99国内精品自在现线| 国内精品伊人久久久久777| 国产亚洲色婷婷久久99精品| 久久一本综合| 成人a毛片久久免费播放| 伊人久久大香线蕉综合Av| 伊人久久大香线蕉精品不卡 | 中文精品久久久久人妻| 亚洲精品国产成人99久久| 久久精品中文无码资源站| 久久久久久久女国产乱让韩| 久久亚洲欧洲国产综合| 国产午夜精品久久久久九九| 94久久国产乱子伦精品免费 | 久久亚洲私人国产精品| 97热久久免费频精品99| 亚洲国产一成人久久精品| 国产精品久久久久久久人人看| 久久久久亚洲精品天堂久久久久久|