⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdi_8h-source.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<a name="l01004"></a><a class="code" href="group__region__fns.htm#ga33">01004</a> <span class="preprocessor">#define UnionRectWithRegion     AddClipRect</span>01005 <span class="preprocessor"></span><a name="l01011"></a><a class="code" href="group__region__fns.htm#ga34">01011</a> <span class="preprocessor">#define CopyRegion              ClipRgnCopy</span>01012 <span class="preprocessor"></span><a name="l01018"></a><a class="code" href="group__region__fns.htm#ga35">01018</a> <span class="preprocessor">#define IntersectRegion         ClipRgnIntersect</span>01019 <span class="preprocessor"></span>01035 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__region__fns.htm#ga23">InitCircleRegion</a> (PCLIPRGN dst, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r);01036 01053 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__region__fns.htm#ga24">InitEllipseRegion</a> (PCLIPRGN dst, 01054                 <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> rx, <span class="keywordtype">int</span> ry);01055 01070 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__region__fns.htm#ga25">InitPolygonRegion</a> (PCLIPRGN dst, 01071                 <span class="keyword">const</span> <a class="code" href="struct__POINT.htm">POINT</a>* pts, <span class="keywordtype">int</span> vertices);01072 01073 <span class="preprocessor">#endif</span>01074 <span class="preprocessor"></span><a name="l01120"></a><a class="code" href="group__dc__fns.htm#ga22">01120</a> <span class="preprocessor">#define HDC_SCREEN          0</span>01121 <span class="preprocessor"></span><a name="l01126"></a><a class="code" href="group__dc__fns.htm#ga23">01126</a> <span class="preprocessor">#define HDC_INVALID         0</span>01127 <span class="preprocessor"></span>01128 <span class="preprocessor">#define GDCAP_COLORNUM      0</span>01129 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_HPIXEL        1</span>01130 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_VPIXEL        2</span>01131 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_MAXX          3</span>01132 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_MAXY          4</span>01133 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_DEPTH         5</span>01134 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_BPP           6</span>01135 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_BITSPP        7</span>01136 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_RMASK         8</span>01137 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_GMASK         9</span>01138 <span class="preprocessor"></span><span class="preprocessor">#define GDCAP_BMASK         10</span>01139 <span class="preprocessor"></span>01181 MG_EXPORT <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GUIAPI <a class="code" href="group__dc__fns.htm#ga0">GetGDCapability</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keywordtype">int</span> iItem);01182 01200 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga1">GetDC</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);01201 01219 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga2">GetClientDC</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);01220 01231 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__dc__fns.htm#ga3">ReleaseDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc);01232 01251 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga4">CreatePrivateDC</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);01252 01272 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga5">CreatePrivateClientDC</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);01273 01295 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga6">GetPrivateClientDC</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);01296 01306 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__dc__fns.htm#ga7">DeletePrivateDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc);01307 01319 MG_EXPORT <a class="code" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga8">WindowFromDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc);01320 01341 MG_EXPORT <span class="keywordtype">int</span> GUIAPI <a class="code" href="group__dc__fns.htm#ga9">SaveDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc);01342 01368 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga10">RestoreDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keywordtype">int</span> saved_dc);01369 01370 <span class="preprocessor">#ifdef _USE_NEWGAL</span>01371 <span class="preprocessor"></span>01372 <span class="preprocessor">#define MEMDC_FLAG_NONE         0x00000000  </span><span class="comment">/* None. */</span>01373 <span class="preprocessor">#define MEMDC_FLAG_SWSURFACE    0x00000000  </span><span class="comment">/* DC is in system memory */</span>01374 <span class="preprocessor">#define MEMDC_FLAG_HWSURFACE    0x00000001  </span><span class="comment">/* DC is in video memory */</span>01375 <span class="preprocessor">#define MEMDC_FLAG_SRCCOLORKEY  0x00001000  </span><span class="comment">/* Blit uses a source color key */</span>01376 <span class="preprocessor">#define MEMDC_FLAG_SRCALPHA     0x00010000  </span><span class="comment">/* Blit uses source alpha blending*/</span>01377 <span class="preprocessor">#define MEMDC_FLAG_RLEACCEL     0x00004000  </span><span class="comment">/* Surface is RLE encoded */</span>01378 01401 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga11">CreateCompatibleDCEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);01402 01438 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga12">CreateMemDC</a> (<span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">int</span> depth, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags,01439                 <a class="code" href="group__basic__types.htm#ga4">Uint32</a> Rmask, <a class="code" href="group__basic__types.htm#ga4">Uint32</a> Gmask, <a class="code" href="group__basic__types.htm#ga4">Uint32</a> Bmask, <a class="code" href="group__basic__types.htm#ga4">Uint32</a> Amask);01440 01465 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga13">CreateSubMemDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> parent, <span class="keywordtype">int</span> off_x, <span class="keywordtype">int</span> off_y, 01466                 <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <a class="code" href="group__simple__types.htm#ga0">BOOL</a> comp_to_parent);01467 01485 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga14">CreateMemDCFromBitmap</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, BITMAP* bmp);01486 01507 MG_EXPORT <a class="code" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga15">CreateMemDCFromMyBitmap</a> (<span class="keyword">const</span> MYBITMAP* my_bmp, <a class="code" href="struct__RGB.htm">RGB</a>* pal);01508 01534 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga16">ConvertMemDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> mem_dc, <a class="code" href="group__handles.htm#ga2">HDC</a> ref_dc, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags);01535 01565 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga17">SetMemDCAlpha</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> mem_dc, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="code" href="group__basic__types.htm#ga0">Uint8</a> alpha);01566 01588 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="code" href="group__dc__fns.htm#ga18">SetMemDCColorKey</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> mem_dc, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags, 01589                 <a class="code" href="group__basic__types.htm#ga4">Uint32</a> color_key);01590 01605 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__dc__fns.htm#ga19">DeleteMemDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> mem_dc);01606 <a name="l01623"></a><a class="code" href="group__dc__fns.htm#ga41">01623</a> <span class="preprocessor">#define CreateCompatibleDC(hdc) CreateCompatibleDCEx(hdc, 0, 0);</span>01624 <span class="preprocessor"></span><a name="l01639"></a><a class="code" href="group__dc__fns.htm#ga42">01639</a> <span class="preprocessor">#define DeleteCompatibleDC(hdc) DeleteMemDC(hdc)</span>01640 <span class="preprocessor"></span>01680 MG_EXPORT <a class="code" href="group__basic__types.htm#ga0">Uint8</a>* GUIAPI <a class="code" href="group__dc__fns.htm#ga20">LockDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>* rw_rc, 01681                 <span class="keywordtype">int</span>* width, <span class="keywordtype">int</span>* height, <span class="keywordtype">int</span>* pitch);01682 01693 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__dc__fns.htm#ga21">UnlockDC</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc);01694 01709 <span class="preprocessor">#define GAL_YV12_OVERLAY  0x32315659    </span><span class="comment">/* Planar mode: Y + V + U  (3 planes) */</span>01710 <span class="preprocessor">#define GAL_IYUV_OVERLAY  0x56555949    </span><span class="comment">/* Planar mode: Y + U + V  (3 planes) */</span>01711 <span class="preprocessor">#define GAL_YUY2_OVERLAY  0x32595559    </span><span class="comment">/* Packed mode: Y0+U0+Y1+V0 (1 plane) */</span>01712 <span class="preprocessor">#define GAL_UYVY_OVERLAY  0x59565955    </span><span class="comment">/* Packed mode: U0+Y0+V0+Y1 (1 plane) */</span>01713 <span class="preprocessor">#define GAL_YVYU_OVERLAY  0x55595659    </span><span class="comment">/* Packed mode: Y0+V0+Y1+U0 (1 plane) */</span>01714 <a name="l01718"></a><a class="code" href="struct__GAL__Overlay.htm">01718</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__GAL__Overlay.htm">_GAL_Overlay</a> {<a name="l01720"></a><a class="code" href="struct__GAL__Overlay.htm#o0">01720</a>     <a class="code" href="group__basic__types.htm#ga4">Uint32</a> <a class="code" href="struct__GAL__Overlay.htm#o0">format</a>;<a name="l01722"></a><a class="code" href="struct__GAL__Overlay.htm#o1">01722</a>     <span class="keywordtype">int</span> <a class="code" href="struct__GAL__Overlay.htm#o1">w</a>;<a name="l01724"></a><a class="code" href="struct__GAL__Overlay.htm#o2">01724</a>     <span class="keywordtype">int</span> <a class="code" href="struct__GAL__Overlay.htm#o2">h</a>;<a name="l01726"></a><a class="code" href="struct__GAL__Overlay.htm#o3">01726</a>     <span class="keywordtype">int</span> <a class="code" href="struct__GAL__Overlay.htm#o3">planes</a>;<a name="l01728"></a><a class="code" href="struct__GAL__Overlay.htm#o4">01728</a>     <a class="code" href="group__basic__types.htm#ga2">Uint16</a> *<a class="code" href="struct__GAL__Overlay.htm#o4">pitches</a>;<a name="l01730"></a><a class="code" href="struct__GAL__Overlay.htm#o5">01730</a>     <a class="code" href="group__basic__types.htm#ga0">Uint8</a> **<a class="code" href="struct__GAL__Overlay.htm#o5">pixels</a>;01731 <a name="l01733"></a><a class="code" href="struct__GAL__Overlay.htm#o6">01733</a>     <span class="keyword">struct </span>private_yuvhwfuncs *<a class="code" href="struct__GAL__Overlay.htm#o6">hwfuncs</a>;<a name="l01735"></a><a class="code" href="struct__GAL__Overlay.htm#o7">01735</a>     <span class="keyword">struct </span>private_yuvhwdata *<a class="code" href="struct__GAL__Overlay.htm#o7">hwdata</a>;01736 <a name="l01738"></a><a class="code" href="struct__GAL__Overlay.htm#o8">01738</a>     <a class="code" href="group__basic__types.htm#ga4">Uint32</a> <a class="code" href="struct__GAL__Overlay.htm#o8">hw_overlay</a> :1;01739     <a class="code" href="group__basic__types.htm#ga4">Uint32</a> UnusedBits :31;01740 } <a class="code" href="struct__GAL__Overlay.htm">GAL_Overlay</a>;01741 01777 MG_EXPORT <a class="code" href="struct__GAL__Overlay.htm">GAL_Overlay</a>* GUIAPI <a class="code" href="group__yuv__fns.htm#ga1">CreateYUVOverlay</a> (<span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -