Click or drag to resize

DIBStretch Function

X#
Display the DIB within the specified window.

Namespace:  VOGUIClasses
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 FUNCTION DIBStretch(
	pWinBmp AS PTR,
	hWnd AS PTR,
	nCx AS DWORD,
	nCy AS DWORD,
	r8Factor AS REAL8
) AS VOID
Request Example View Source

Parameters

pWinBmp
Type: Void*
Pointer to the DIB data.
hWnd
Type: Void*
Window handle.
nCx
Type: DWord
Width of the area for displaying the DIB.
nCy
Type: DWord
Height of the area for displaying the DIB.
r8Factor
Type: Double
The zoom factor of the bitmap. A value of 1.0 would be its normal size.

Return Value

Type: 
Remarks
DIBStretch() copies a DIB into a destination rectangle of <nWidth> by <nHeight>, stretching or compressing the bitmap by a factor of <r8Zoom> to fit the dimensions of the specified window, <hWnd>. <r8Zoom> can be calculated as <size of the area>/<size of the bitmap>. For example, a value of 2.0 would double the bitmap size, while a value of 0.5 would shrink the DIB to half its normal size.
Examples