• <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

            統計

            留言簿

            閱讀排行榜

            評論排行榜

            不錯的C++圖像庫DevIL

            在使用CxImage顯示gif文件時,發現CxImage解一個299幀的gif動畫,在debug的時候花了好幾時秒,
            CxImage
            在處理gif時效率太低了。
            在網上搜索了一些,支持比較強的圖像庫:
            imageMagick--
            非常強大,在MFC中不好用,要把圖片顯示到窗口非常麻煩,至少目前沒有發現在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 閱讀(4701) 評論(5)  編輯 收藏 引用

            評論

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

            比freeImage如何?  回復  更多評論   

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

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

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

            FreeImage很強大。
            而且FreeImage也非常好用。不存在接口不好用的問題啊。  回復  更多評論   

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

            ogre在紋理處理上已經拋棄devil改用freeimage了  回復  更多評論   

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

            @kevin
            不應該是拋棄,而是和DevIL協議不同吧。。。
            要調查清楚哦~

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


            DevIL比較簡潔,C接口的。

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

              回復  更多評論   

            中文字幕无码精品亚洲资源网久久| 久久精品99久久香蕉国产色戒| 无码国产69精品久久久久网站| 亚洲国产另类久久久精品小说| 午夜精品久久久久久久无码| 性高湖久久久久久久久AAAAA| 91久久精品无码一区二区毛片| 久久青草国产精品一区| 伊人久久大香线蕉精品| 亚洲精品高清久久| 四虎国产精品免费久久5151| 国产亚洲欧美成人久久片| 久久成人精品| 久久影院久久香蕉国产线看观看| 亚洲日本va中文字幕久久| 天天躁日日躁狠狠久久| 九九99精品久久久久久| 欧美精品丝袜久久久中文字幕 | 久久电影网一区| 精品999久久久久久中文字幕| 国产精品成人久久久久久久| 亚洲午夜久久久久久久久电影网 | 久久精品一区二区三区中文字幕| 久久婷婷五月综合色奶水99啪| 人妻丰满?V无码久久不卡| 影音先锋女人AV鲁色资源网久久| 亚洲国产精品无码久久青草| 很黄很污的网站久久mimi色 | 久久亚洲AV成人无码| 99久久成人18免费网站| 亚洲人成无码网站久久99热国产| 久久青青草原精品国产| 久久国产精品无码网站| 久久精品国产亚洲精品2020| 亚洲人成网站999久久久综合| 精品久久久久久久| 亚洲七七久久精品中文国产| 91精品国产91久久久久久| 久久66热人妻偷产精品9| 国内精品久久久久久99蜜桃 | 久久精品一本到99热免费|