网站首页  词典首页

请输入您要查询的函数:

 

术语 getstretchbltmode
释义 GetStretchBltMode
语法:
int GetStretchBltMode(
__in HDC hdc
);
GetStretchBltMode功能
该GetStretchBltMode函数检索当前的延伸模式。伸缩模式定义的颜色数据是如何增加或从已被拉伸或压缩时,StretchBlt函数被调用位图删除。
参数
hdc [in]
一个句柄,设备上下文。
返回值
如果函数成功,返回值是当前延伸模式。这可以是下列值之一。
ValueDescription
BLACKONWHITEPerforms布尔和操作使用的颜色值的淘汰,现有的像素。如果位图是一个单色位图,这种模式在保持白色像素为代价黑色像素。
COLORONCOLORDeletes像素。这种模式删除,但不尝试保持其信息的所有像素淘汰线。
从目标矩形成块的像素源矩形HALFTONEMaps像素。在对目标的像素块平均色接近源像素的颜色。
STRETCH_ANDSCANSSame的BLACKONWHITE。
STRETCH_DELETESCANSSame的COLORONCOLOR。
STRETCH_HALFTONESame的半色调。
STRETCH_ORSCANSSame的WHITEONBLACK。
WHITEONBLACKPerforms行动的布尔或使用的颜色值的淘汰,现有的像素。如果位图是一个单色位图,此模式在保留黑色像素为代价白色像素。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
SetStretchBltMode
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetStretchBltMode Function
The GetStretchBltMode function retrieves the current stretching mode. The stretching mode defines how color data is added to or removed from bitmaps that are stretched or compressed when the StretchBlt function is called.
Syntax
int GetStretchBltMode(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the device context.
Return Value
If the function succeeds, the return value is the current stretching mode. This can be one of the following values.
ValueDescription
BLACKONWHITEPerforms a Boolean AND operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves black pixels at the expense of white pixels.
COLORONCOLORDeletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information.
HALFTONEMaps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels.
STRETCH_ANDSCANSSame as BLACKONWHITE.
STRETCH_DELETESCANSSame as COLORONCOLOR.
STRETCH_HALFTONESame as HALFTONE.
STRETCH_ORSCANSSame as WHITEONBLACK.
WHITEONBLACKPerforms a Boolean OR operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves white pixels at the expense of black pixels.

If the function fails, the return value is zero.
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
SetStretchBltMode
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144926(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:16:15