网站首页  词典首页

请输入您要查询的函数:

 

术语 setbitmapdimensionex
释义 SetBitmapDimensionEx
语法:
BOOL SetBitmapDimensionEx(
__in HBITMAP hBitmap,
__in int nWidth,
__in int nHeight,
__out LPSIZE lpSize
);
SetBitmapDimensionEx功能
该SetBitmapDimensionEx函数分配首选尺寸为位图。这些方面可以使用的应用程序,但它们不是由系统使用。
参数
hBitmap [in]
阿位图句柄。位图不能是DIB的截面图。
nWidth [in]
在0.1宽度,毫米单位,位图。
nHeight [in]
身高在0.1,毫米单位,位图。
lpSize [out]
一个尺寸结构的指针收到位图上的尺寸。这个指针可以为NULL。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
应用程序可以检索指定调用GetBitmapDimensionEx功能与SetBitmapDimensionEx功能位图的尺寸。
由hBitmap确定的位图不能是DIB的部分,是由CreateDIBSection函数创建一个位图。如果是的DIB位图节,SetBitmapDimensionEx函数失败。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
CreateDIBSection
GetBitmapDimensionEx
尺寸
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetBitmapDimensionEx Function
The SetBitmapDimensionEx function assigns preferred dimensions to a bitmap. These dimensions can be used by applications; however, they are not used by the system.
Syntax
BOOL SetBitmapDimensionEx(
__in HBITMAP hBitmap,
__in int nWidth,
__in int nHeight,
__out LPSIZE lpSize
);
Parameters
hBitmap [in]
A handle to the bitmap. The bitmap cannot be a DIB-section bitmap.
nWidth [in]
The width, in 0.1-millimeter units, of the bitmap.
nHeight [in]
The height, in 0.1-millimeter units, of the bitmap.
lpSize [out]
A pointer to a SIZE structure to receive the previous dimensions of the bitmap. This pointer can be NULL.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
An application can retrieve the dimensions assigned to a bitmap with the SetBitmapDimensionEx function by calling the GetBitmapDimensionEx function.
The bitmap identified by hBitmap cannot be a DIB section, which is a bitmap created by the CreateDIBSection function. If the bitmap is a DIB section, the SetBitmapDimensionEx function fails.
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
CreateDIBSection
GetBitmapDimensionEx
SIZE
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162963(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:15:27