📄 gdi_8h.htm
字号:
<dl class="el"><dd class="mdescRight">Intersects a rectangle with a region. <a href="group__region__fns.htm#ga14"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga15">SubtractClipRect</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> pRgn, const <a class="el" href="struct__RECT.htm">RECT</a> *pRect)<dl class="el"><dd class="mdescRight">Subtracts a rectangle from a region. <a href="group__region__fns.htm#ga15"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga16">PtInRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> region, int x, int y)<dl class="el"><dd class="mdescRight">Determines whether a point is in a region. <a href="group__region__fns.htm#ga16"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga17">RectInRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> region, const <a class="el" href="struct__RECT.htm">RECT</a> *rect)<dl class="el"><dd class="mdescRight">Determines whether a rectangle is intersected with a region. <a href="group__region__fns.htm#ga17"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__region__fns.htm#ga18">OffsetRegionEx</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> region, const <a class="el" href="struct__RECT.htm">RECT</a> *rcClient, const <a class="el" href="struct__RECT.htm">RECT</a> *rcScroll, int x, int y)<dl class="el"><dd class="mdescRight">Offsets the region in the specified window's scroll area. <a href="group__region__fns.htm#ga18"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__region__fns.htm#ga19">OffsetRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> region, int x, int y)<dl class="el"><dd class="mdescRight">Offsets the region. <a href="group__region__fns.htm#ga19"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga20">UnionRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> dst, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *src1, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *src2)<dl class="el"><dd class="mdescRight">Unions two regions. <a href="group__region__fns.htm#ga20"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga21">SubtractRegion</a> (<a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *rgnD, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *rgnM, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *rgnS)<dl class="el"><dd class="mdescRight">Substrcts a region from another. <a href="group__region__fns.htm#ga21"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga22">XorRegion</a> (<a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *dst, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *src1, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *src2)<dl class="el"><dd class="mdescRight">Does the XOR operation between two regions. <a href="group__region__fns.htm#ga22"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga23">InitCircleRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> dst, int x, int y, int r)<dl class="el"><dd class="mdescRight">Initializes a region to be an enclosed circle. <a href="group__region__fns.htm#ga23"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga24">InitEllipseRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> dst, int x, int y, int rx, int ry)<dl class="el"><dd class="mdescRight">Initializes a region to be an enclosed ellipse. <a href="group__region__fns.htm#ga24"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__region__fns.htm#ga25">InitPolygonRegion</a> (<a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> dst, const <a class="el" href="struct__POINT.htm">POINT</a> *pts, int vertices)<dl class="el"><dd class="mdescRight">Initializes a region to be an enclosed polygon. <a href="group__region__fns.htm#ga25"></a><br></dl><li>MG_EXPORT unsigned int GUIAPI <a class="el" href="group__dc__fns.htm#ga0">GetGDCapability</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int iItem)<dl class="el"><dd class="mdescRight">Returns a capability of a DC. <a href="group__dc__fns.htm#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga1">GetDC</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd)<dl class="el"><dd class="mdescRight">Gets a window DC of a window. <a href="group__dc__fns.htm#ga1"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga2">GetClientDC</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd)<dl class="el"><dd class="mdescRight">Gets a client DC of a window. <a href="group__dc__fns.htm#ga2"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__dc__fns.htm#ga3">ReleaseDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Releases a DC from DC pool. <a href="group__dc__fns.htm#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga4">CreatePrivateDC</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd)<dl class="el"><dd class="mdescRight">Creates a private window DC of a window. <a href="group__dc__fns.htm#ga4"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga5">CreatePrivateClientDC</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd)<dl class="el"><dd class="mdescRight">Creates a private client DC of a window. <a href="group__dc__fns.htm#ga5"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga6">GetPrivateClientDC</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd)<dl class="el"><dd class="mdescRight">Returns the private client DC of a window. <a href="group__dc__fns.htm#ga6"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__dc__fns.htm#ga7">DeletePrivateDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Deletes the DC returned by <em>CreatePrivateDC</em> or <em>CreatePrivateClientDC</em>. <a href="group__dc__fns.htm#ga7"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga8">WindowFromDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Gets the handle to the window by a handle to the DC. <a href="group__dc__fns.htm#ga8"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__dc__fns.htm#ga9">SaveDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Saves the current state of a device context. <a href="group__dc__fns.htm#ga9"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga10">RestoreDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int saved_dc)<dl class="el"><dd class="mdescRight">Restores a device context (DC) to the specified state. <a href="group__dc__fns.htm#ga10"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga11">CreateCompatibleDCEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int width, int height)<dl class="el"><dd class="mdescRight">Creates a memory DC which is compatible with the specified reference DC. <a href="group__dc__fns.htm#ga11"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga12">CreateMemDC</a> (int width, int height, int depth, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> Rmask, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> Gmask, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> Bmask, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> Amask)<dl class="el"><dd class="mdescRight">Creates a memory DC. <a href="group__dc__fns.htm#ga12"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga13">CreateSubMemDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> parent, int off_x, int off_y, int width, int height, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> comp_to_parent)<dl class="el"><dd class="mdescRight">Creates a sub memory DC in the given memory DC. <a href="group__dc__fns.htm#ga13"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga14">CreateMemDCFromBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp)<dl class="el"><dd class="mdescRight">Creates a memory DC from a reference DC and a BITMAP object. <a href="group__dc__fns.htm#ga14"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga15">CreateMemDCFromMyBitmap</a> (const <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal)<dl class="el"><dd class="mdescRight">Creates a memory DC from a device independent MYBITMAP object. <a href="group__dc__fns.htm#ga15"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga16">ConvertMemDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> mem_dc, <a class="el" href="group__handles.htm#ga2">HDC</a> ref_dc, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags)<dl class="el"><dd class="mdescRight">Converts a memory DC to have a same format as a reference DC. <a href="group__dc__fns.htm#ga16"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga17">SetMemDCAlpha</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> mem_dc, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> alpha)<dl class="el"><dd class="mdescRight">Sets the alpha value for the entire surface of a DC, as opposed to using the alpha component of each pixel. <a href="group__dc__fns.htm#ga17"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__dc__fns.htm#ga18">SetMemDCColorKey</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> mem_dc, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> color_key)<dl class="el"><dd class="mdescRight">Sets the color key (transparent pixel) of a memory DC. <a href="group__dc__fns.htm#ga18"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__dc__fns.htm#ga19">DeleteMemDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> mem_dc)<dl class="el"><dd class="mdescRight">Deletes a memory DC. <a href="group__dc__fns.htm#ga19"></a><br></dl><li>MG_EXPORT <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *GUIAPI <a class="el" href="group__dc__fns.htm#ga20">LockDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *rw_rc, int *width, int *height, int *pitch)<dl class="el"><dd class="mdescRight">Locks a dc to get direct access to pixels in the DC. <a href="group__dc__fns.htm#ga20"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__dc__fns.htm#ga21">UnlockDC</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Unlocks a locked DC. <a href="group__dc__fns.htm#ga21"></a><br></dl><li>MG_EXPORT <a class="el" href="struct__GAL__Overlay.htm">GAL_Overlay</a> *GUIAPI <a class="el" href="group__yuv__fns.htm#ga1">CreateYUVOverlay</a> (int width, int height, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> format, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Creates a video output overlay on a DC. <a href="group__yuv__fns.htm#ga1"></a><br></dl><li>int <a class="el" href="group__yuv__fns.htm#ga2">GAL_LockYUVOverlay</a> (<a class="el" href="struct__GAL__Overlay.htm">GAL_Overlay</a> *overlay)<dl class="el"><dd class="mdescRight">Locks an overlay for direct access. <a href="group__yuv__fns.htm#ga2"></a><br></dl><li>void <a class="el" href="group__yuv__fns.htm#ga3">GAL_UnlockYUVOverlay</a> (<a class="el" href="struct__GAL__Overlay.htm">GAL_Overlay</a> *overlay)<dl class="el"><dd class="mdescRight">Unlocks a locked overlay when you are done. <a href="group__yuv__fns.htm#ga3"></a><br></dl><li>void <a class="el" href="group__yuv__fns.htm#ga4">GAL_FreeYUVOverlay</a> (<a class="el" href="struct__GAL__Overlay.htm">GAL_Overlay</a> *overlay)<dl class="el"><dd class="mdescRight">Frees a YUV overlay. <a href="group__yuv__fns.htm#ga4"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__yuv__fns.htm#ga5">DisplayYUVOverlay</a> (<a class="el" href="struct__GAL__Overlay.htm">GAL_Overlay</a> *overlay, const <a class="el" href="struct__RECT.htm">RECT</a> *dstrect)<dl class="el"><dd class="mdescRight">Blits a video overlay to the screen. <a href="group__yuv__fns.htm#ga5"></a><br></dl><li>int <a class="el" href="group__gamma__fns.htm#ga0">GAL_SetGamma</a> (float red, float green, float blue)<dl class="el"><dd class="mdescRight">Sets the gamma correction for each of the color channels. <a href="group__gamma__fns.htm#ga0"></a><br></dl><li>int <a class="el" href="group__gamma__fns.htm#ga1">GAL_SetGammaRamp</a> (<a class="el" href="group__basic__types.htm#ga2">Uint16</a> *red, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *green, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *blue)<dl class="el"><dd class="mdescRight">Sets the gamma translation table for the red, green, and blue channels of the video hardware. <a href="group__gamma__fns.htm#ga1"></a><br></dl><li>int <a class="el" href="group__gamma__fns.htm#ga2">GAL_GetGammaRamp</a> (<a class="el" href="group__basic__types.htm#ga2">Uint16</a> *red, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *green, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *blue)<dl class="el"><dd class="mdescRight">Retrieves the current values of the gamma translation tables. <a href="group__gamma__fns.htm#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__basic__types.htm#ga4">Uint32</a> GUIAPI <a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int attr)<dl class="el"><dd class="mdescRight">Gets a specified attribute value of a DC. <a href="group__dc__attrs.htm#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__basic__types.htm#ga4">Uint32</a> GUIAPI <a class="el" href="group__dc__attrs.htm#ga1">SetDCAttr</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int attr, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> value)<dl class="el"><dd class="mdescRight">Sets a specified attribute value of a DC. <a href="group__dc__attrs.htm#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__dc__attrs.htm#ga2">GetRasterOperation</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Gets the raster operation of a DC. <a href="group__dc__attrs.htm#ga2"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__dc__attrs.htm#ga3">SetRasterOperation</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int rop)<dl class="el"><dd class="mdescRight">Sets the raster operation of a DC to a new value. <a href="group__dc__attrs.htm#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga0">GetPalette</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int start, int len, <a class="el" href="struct__GAL__Color.htm">GAL_Color</a> *cmap)<dl class="el"><dd class="mdescRight">Gets palette entries of a DC. <a href="group__pal__fns.htm#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga1">SetPalette</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int start, int len, <a class="el" href="struct__GAL__Color.htm">GAL_Color</a> *cmap)<dl class="el"><dd class="mdescRight">Sets palette entries of a DC. <a href="group__pal__fns.htm#ga1"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga2">SetColorfulPalette</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Sets a DC with colorfule palette. <a href="group__pal__fns.htm#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga3">HPALETTE</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga3">CreatePalette</a> (<a class="el" href="struct__GAL__Palette.htm">GAL_Palette</a> *pal)<dl class="el"><dd class="mdescRight">Creates a logical palette. <a href="group__pal__fns.htm#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga3">HPALETTE</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga4">GetDefaultPalette</a> (void)<dl class="el"><dd class="mdescRight">Gets the system default logical palette. <a href="group__pal__fns.htm#ga4"></a><br></dl><li>int GUIAPI <a class="el" href="group__pal__fns.htm#ga5">GetPaletteEntries</a> (<a class="el" href="group__handles.htm#ga3">HPALETTE</a> hpal, int start, int len, <a class="el" href="struct__GAL__Color.htm">GAL_Color</a> *cmap)<dl class="el"><dd class="mdescRight">Gets palette entries of a logical palette. <a href="group__pal__fns.htm#ga5"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__fns.htm#ga9">SetPixel</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> pixel)<dl class="el"><dd class="mdescRight">Sets the pixel with a new pixel value at the specified position on a DC. <a href="group__draw__fns.htm#ga9"></a><br></dl><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> GUIAPI <a class="el" href="group__draw__fns.htm#ga10">SetPixelRGB</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> r, <a class="el" href="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -