Win32ApiStretchDIBits Method
|
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax[DllImportAttribute("gdi32", SetLastError = true)]
public static int StretchDIBits(
IntPtr hdc,
int XDest,
int YDest,
int nDestWidth,
int nDestHeight,
int XSrc,
int YSrc,
int nSrcWidth,
int nSrcHeight,
IntPtr lpBits,
ref Win32ApiBITMAPINFO lpBitsInfo,
uint iUsage,
uint dwRop
)
<DllImportAttribute("gdi32", SetLastError := true>]
Public Shared Function StretchDIBits (
hdc As IntPtr,
XDest As Integer,
YDest As Integer,
nDestWidth As Integer,
nDestHeight As Integer,
XSrc As Integer,
YSrc As Integer,
nSrcWidth As Integer,
nSrcHeight As Integer,
lpBits As IntPtr,
ByRef lpBitsInfo As Win32ApiBITMAPINFO,
iUsage As UInteger,
dwRop As UInteger
) As Integer
public:
[DllImportAttribute(L"gdi32", SetLastError = true)]
static int StretchDIBits(
IntPtr hdc,
int XDest,
int YDest,
int nDestWidth,
int nDestHeight,
int XSrc,
int YSrc,
int nSrcWidth,
int nSrcHeight,
IntPtr lpBits,
Win32ApiBITMAPINFO% lpBitsInfo,
unsigned int iUsage,
unsigned int dwRop
)
[<DllImportAttribute("gdi32", SetLastError = true)>]
static member StretchDIBits :
hdc : IntPtr *
XDest : int *
YDest : int *
nDestWidth : int *
nDestHeight : int *
XSrc : int *
YSrc : int *
nSrcWidth : int *
nSrcHeight : int *
lpBits : IntPtr *
lpBitsInfo : Win32ApiBITMAPINFO byref *
iUsage : uint32 *
dwRop : uint32 -> int
OpenCvSharp.Win32Api.StretchDIBits = function(hdc, XDest, YDest, nDestWidth, nDestHeight, XSrc, YSrc, nSrcWidth, nSrcHeight, lpBits, lpBitsInfo, iUsage, dwRop);
Parameters
- hdc
- Type: SystemIntPtr
- XDest
- Type: SystemInt32
- YDest
- Type: SystemInt32
- nDestWidth
- Type: SystemInt32
- nDestHeight
- Type: SystemInt32
- XSrc
- Type: SystemInt32
- YSrc
- Type: SystemInt32
- nSrcWidth
- Type: SystemInt32
- nSrcHeight
- Type: SystemInt32
- lpBits
- Type: SystemIntPtr
- lpBitsInfo
- Type: OpenCvSharpWin32ApiBITMAPINFO
- iUsage
- Type: SystemUInt32
- dwRop
- Type: SystemUInt32
Return Value
Type:
Int32
See Also