点击或拖拽改变大小

GDIStretchDIBits 方法

Sweet 开发框架

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <summary> 文档]

命名空间:  Sweet.Common.Win32
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static int StretchDIBits(
	IntPtr hdc,
	int x,
	int y,
	int dx,
	int dy,
	int SrcX,
	int SrcY,
	int wSrcWidth,
	int wSrcHeight,
	IntPtr lpBits,
	ref BITMAPINFO lpBitsInfo,
	int wUsage,
	int dwRop
)

参数

hdc
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="hdc"/> 文档]

x
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="x"/> 文档]

y
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="y"/> 文档]

dx
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="dx"/> 文档]

dy
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="dy"/> 文档]

SrcX
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="SrcX"/> 文档]

SrcY
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="SrcY"/> 文档]

wSrcWidth
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="wSrcWidth"/> 文档]

wSrcHeight
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="wSrcHeight"/> 文档]

lpBits
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="lpBits"/> 文档]

lpBitsInfo
类型:Sweet.Common.Win32BITMAPINFO

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="lpBitsInfo"/> 文档]

wUsage
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="wUsage"/> 文档]

dwRop
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <param name="dwRop"/> 文档]

返回值

类型:Int32

[缺少 "M:Sweet.Common.Win32.GDI.StretchDIBits(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,Sweet.Common.Win32.BITMAPINFO@,System.Int32,System.Int32)" 的 <returns> 文档]

参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架