• <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 的筆記 閱讀(1076) 評論(0)  編輯 收藏 引用

            色综合久久中文字幕综合网| 久久精品国产一区二区三区日韩| 精品无码久久久久久国产| 久久久久亚洲精品无码网址| 日产久久强奸免费的看| 久久精品成人欧美大片| 亚洲国产精品无码久久久秋霞2| 亚洲国产精品无码久久一线| 99热精品久久只有精品| 久久久久亚洲精品日久生情| 国产一久久香蕉国产线看观看| 亚洲色欲久久久久综合网| 丰满少妇人妻久久久久久| 亚州日韩精品专区久久久| 国内精品久久久久影院优| 日韩AV毛片精品久久久| 欧美日韩中文字幕久久伊人| 一级女性全黄久久生活片免费| 久久最近最新中文字幕大全| 色8久久人人97超碰香蕉987| 欧美性大战久久久久久| 欧美伊香蕉久久综合类网站| 国产精品99久久精品| 97精品依人久久久大香线蕉97| 久久综合九色综合久99| 国产午夜精品久久久久九九| 2020久久精品国产免费| 久久久久高潮毛片免费全部播放 | 88久久精品无码一区二区毛片| 久久精品国产99国产精品导航| 亚洲精品国产自在久久| 久久精品国产99久久香蕉| 99久久国产免费福利| 99久久无码一区人妻| 99久久夜色精品国产网站| 久久国产精品99精品国产987| 国产精品久久一区二区三区| 国产亚洲精品自在久久| 午夜不卡888久久| 久久国产美女免费观看精品| 久久久久国产精品嫩草影院|