网站首页  计算机词典

请输入您要查询的字词:

 

字词 getpixel
释义 GetPixel
语法:
COLORREF GetPixel(
__in HDC hdc,
__in int nXPos,
__in int nYPos
);
GetPixel函数
该GetPixel函数检索在指定的红,绿,蓝(RGB)像素的颜色值坐标。
参数
hdc [in]
一个句柄,设备上下文。
nXPos [in]
的x坐标,按逻辑单位,像素进行审查。
nYPos [in]
在y坐标,按逻辑单位像素的,进行审查。
返回值
返回值是像素的RGB值。如果像素是当前剪辑区域之外,则返回值为CLR_INVALID。
备注
像素必须在当前剪贴区域的边界。
并非所有的设备都支持GetPixel。应用程序应调用GetDeviceCaps,以确定是否指定的设备支持此功能。
位图必须选择在设备方面,否则,CLR_INVALID上所有像素返回。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
COLORREF
GetDeviceCaps
SetPixel
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetPixel Function
The GetPixel function retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.
Syntax
COLORREF GetPixel(
__in HDC hdc,
__in int nXPos,
__in int nYPos
);
Parameters
hdc [in]
A handle to the device context.
nXPos [in]
The x-coordinate, in logical units, of the pixel to be examined.
nYPos [in]
The y-coordinate, in logical units, of the pixel to be examined.
Return Value
The return value is the RGB value of the pixel. If the pixel is outside of the current clipping region, the return value is CLR_INVALID.
Remarks
The pixel must be within the boundaries of the current clipping region.
Not all devices support GetPixel. An application should call GetDeviceCaps to determine whether a specified device supports this function.
A bitmap must be selected within the device context, otherwise, CLR_INVALID is returned on all pixels.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Bitmaps Overview
Bitmap Functions
COLORREF
GetDeviceCaps
SetPixel
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144909(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 22:39:22