• <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)計(jì)

            留言簿

            閱讀排行榜

            評(píng)論排行榜

            不錯(cuò)的C++圖像庫(kù)DevIL

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

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

            附:

            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) 評(píng)論(5)  編輯 收藏 引用

            評(píng)論

            # re: 不錯(cuò)的C++圖像庫(kù)DevIL 2008-01-15 18:10 tmp

            比f(wàn)reeImage如何?  回復(fù)  更多評(píng)論   

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

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

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

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

            # re: 不錯(cuò)的C++圖像庫(kù)DevIL[未登錄](méi) 2008-01-18 13:14 kevin

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

            # re: 不錯(cuò)的C++圖像庫(kù)DevIL 2011-10-26 16:10 程序員他爺爺!!

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

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


            DevIL比較簡(jiǎn)潔,C接口的。

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

              回復(fù)  更多評(píng)論   

            久久无码人妻一区二区三区午夜| 久久国产一区二区| 国产精品美女久久久免费| 伊人久久精品线影院| 久久人人爽人人爽人人片AV高清 | 久久WWW免费人成—看片| 久久成人18免费网站| 亚洲午夜无码AV毛片久久| 亚洲乱码中文字幕久久孕妇黑人 | 久久中文精品无码中文字幕| 色欲av伊人久久大香线蕉影院| 久久久久久久久波多野高潮| 精品熟女少妇a∨免费久久| 青青草国产97免久久费观看| 国产精品久久久久久| 免费无码国产欧美久久18| 国産精品久久久久久久| 伊人久久大香线蕉av不卡| 一个色综合久久| 国产成人久久777777| 亚洲精品国精品久久99热一| 久久久久国色AV免费看图片| 66精品综合久久久久久久| 国产69精品久久久久APP下载| 久久91精品久久91综合| 日产精品久久久久久久| 精品久久久久久久国产潘金莲| 亚洲嫩草影院久久精品| 天天躁日日躁狠狠久久| 精品综合久久久久久98| 久久久久99精品成人片三人毛片| 久久777国产线看观看精品| 人妻精品久久无码专区精东影业| 香蕉久久夜色精品国产2020 | 久久亚洲熟女cc98cm| 亚洲伊人久久综合影院| 久久无码一区二区三区少妇| 99久久成人18免费网站| 国产成人香蕉久久久久| 99久久精品免费国产大片| 久久av免费天堂小草播放|