• <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)論排行榜

            2008年1月15日 #

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

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

            還是DevIL比較好使一點(diǎn),感覺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 @ 2008-01-15 17:17 hosea 閱讀(4701) | 評(píng)論 (5)編輯 收藏

            僅列出標(biāo)題  
            国产成年无码久久久免费| 亚洲伊人久久成综合人影院 | 99久久99久久精品国产片| 久久亚洲国产中v天仙www | 日日狠狠久久偷偷色综合免费| 亚洲国产成人精品女人久久久 | 久久美女人爽女人爽| 久久国产V一级毛多内射| 亚洲人成无码www久久久| 久久精品国产亚洲AV电影| 国产精品青草久久久久福利99 | 亚洲国产成人乱码精品女人久久久不卡 | 91精品国产高清久久久久久io| 青青青伊人色综合久久| 久久天天婷婷五月俺也去| 精品久久久久久久久午夜福利| 久久精品人妻一区二区三区| 99精品国产综合久久久久五月天| 久久精品一区二区三区不卡| 无码国内精品久久综合88| 亚洲伊人久久大香线蕉苏妲己| 久久久久久综合网天天| 久久―日本道色综合久久| 亚洲伊人久久大香线蕉综合图片| 久久久久人妻一区精品果冻| 99久久婷婷国产综合亚洲| 久久国产亚洲精品| 久久人妻少妇嫩草AV无码蜜桃| 久久综合九色综合欧美狠狠| 奇米综合四色77777久久| 久久九九兔免费精品6| 久久一区二区三区免费| 国产精品成人精品久久久| 久久精品国产91久久综合麻豆自制| 亚洲精品国产字幕久久不卡| 久久亚洲精品成人无码网站 | 伊人久久精品无码av一区| 色婷婷久久久SWAG精品| 久久亚洲欧洲国产综合| 国产91久久综合| 精品综合久久久久久88小说|