如何才能修改位圖分辨率或尺寸? |
尚未結案
|
tiger18504
一般會員 發表:10 回覆:7 積分:3 註冊:2004-09-13 發送簡訊給我 |
|
wameng
版主 發表:31 回覆:1336 積分:1188 註冊:2004-09-16 發送簡訊給我 |
|
tiger18504
一般會員 發表:10 回覆:7 積分:3 註冊:2004-09-13 發送簡訊給我 |
|
wameng
版主 發表:31 回覆:1336 積分:1188 註冊:2004-09-16 發送簡訊給我 |
SetBitmapDimensionEx
The SetBitmapDimensionEx function assigns preferred dimensions to a bitmap. These dimensions can be used by applications; however, they are not used by the system. BOOL SetBitmapDimensionEx(
HBITMAP hBitmap, // handle to bitmap
int nWidth, // bitmap width in .01-mm units
int nHeight, // bitmap height in .01-mm units
LPSIZE lpSize // original dimensions
);
Parameters
hBitmap
[in] Handle to the bitmap. The bitmap cannot be a DIB-section bitmap.
nWidth
[in] Specifies the width, in 0.1-millimeter units, of the bitmap.
nHeight
[in] Specifies the height, in 0.1-millimeter units, of the bitmap.
lpSize
[out] Pointer to a SIZE structure to receive the previous dimensions of the bitmap. This pointer can be NULL.
Return Values
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Windows NT/2000/XP: To get extended error information, call GetLastError. 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
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
|
tiger18504
一般會員 發表:10 回覆:7 積分:3 註冊:2004-09-13 發送簡訊給我 |
|
wameng
版主 發表:31 回覆:1336 積分:1188 註冊:2004-09-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |