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

            的筆記

            隨時隨地編輯

            GdiPlus筆記

            廢話

            用過不知多少開源圖像庫,其實似乎無例外的都是幾個圖像解碼庫zlib、libpng、libjpeg的封裝。夠了,基本可以解決所有圖像問題。GdiPlus這種要死不活的東西,拜微軟所賜,偶今天才有空去瞅瞅。玩一下吧,不想為了寫幾行代碼去整個開源的解碼庫。別了,zlib;別了,libpng;別了,skia;別了,freeimage;別了,cximage;別了,devil。別了,opensource。

            source

            MSDN About GDI+
            http://msdn.microsoft.com/en-us/library/ms533797(v=VS.85).aspx

            Getting Started
            http://msdn.microsoft.com/en-us/library/ms533807(v=VS.85).aspx

            Image Class
            http://msdn.microsoft.com/en-us/library/ms534462


            Use

            Note the call to GdiplusStartup in the WinMain function. The first parameter of the GdiplusStartup function is the address of a ULONG_PTR. GdiplusStartup fills that variable with a token that is later passed to the GdiplusShutdown function. The second parameter of the GdiplusStartup function is the address of a GdiplusStartupInput structure. The preceding code relies on the default GdiplusStartupInput constructor to set the structure members appropriately.

            1.引用
            #include <gdiplus.h>
            using namespace Gdiplus;
            #pragma comment (lib,"Gdiplus.lib")

            2.初始化與銷毀

            GdiplusStartupInput gdiplusStartupInput;
            ULONG_PTR           gdiplusToken;
            // Initialize GDI+.
            GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);// Shutdown
            GdiplusShutdown(gdiplusToken);

            3.畫

            VOID OnPaint(HDC hdc)
            {
               Graphics graphics(hdc);
               Pen      pen(Color(255, 0, 0, 255));
               graphics.DrawLine(&pen, 0, 0, 200, 100);
            }

            posted on 2011-07-13 16:24 的筆記 閱讀(1079) 評論(0)  編輯 收藏 引用

            女同久久| 久久国产欧美日韩精品| 欧美一区二区精品久久| 久久九九亚洲精品| 久久久久无码国产精品不卡| 欧美性猛交xxxx免费看久久久| 久久天天躁狠狠躁夜夜2020老熟妇 | 亚洲国产精品高清久久久| 日本久久久久亚洲中字幕| 韩国三级大全久久网站| 欧美一级久久久久久久大片| 人妻久久久一区二区三区| 四虎国产精品免费久久5151| 久久婷婷五月综合97色直播| 久久777国产线看观看精品| 久久受www免费人成_看片中文| 国产精品久久久久久久久软件 | 久久久久久久久久久| 欧美综合天天夜夜久久| 国产成人久久精品一区二区三区 | 国产精品一久久香蕉国产线看| 97精品伊人久久久大香线蕉 | 大美女久久久久久j久久| 久久精品国产免费观看| 久久天天日天天操综合伊人av| 国产亚洲欧美成人久久片| 色诱久久久久综合网ywww | 亚洲精品99久久久久中文字幕| 99久久精品午夜一区二区| 日本五月天婷久久网站| 色婷婷综合久久久久中文字幕 | 免费无码国产欧美久久18| 久久精品国产只有精品66| 丁香久久婷婷国产午夜视频| 国产精品青草久久久久婷婷 | 伊人久久久AV老熟妇色| 青青久久精品国产免费看| 国产亚洲精久久久久久无码AV| 99久久精品无码一区二区毛片| 久久福利青草精品资源站免费| 久久人人爽人人爽人人AV东京热|